fix GetProgress again.
This commit is contained in:
parent
43652bb5c3
commit
f659f1fe96
@ -1719,11 +1719,10 @@ NAN_METHOD(GetProgress) {
|
|||||||
|
|
||||||
Local<Function> callback = Local<Function>::Cast(args[0]);
|
Local<Function> callback = Local<Function>::Cast(args[0]);
|
||||||
|
|
||||||
CBlockIndex *pindex = chainActive.Tip();
|
|
||||||
|
|
||||||
async_block_data *data = new async_block_data();
|
async_block_data *data = new async_block_data();
|
||||||
data->err_msg = std::string("");
|
data->err_msg = std::string("");
|
||||||
data->hash = pcoinsTip->GetBestBlock().GetHex(); // .ToString();
|
data->hash = pcoinsTip->GetBestBlock().GetHex(); // .ToString();
|
||||||
|
data->height = -1;
|
||||||
|
|
||||||
data->callback = Persistent<Function>::New(callback);
|
data->callback = Persistent<Function>::New(callback);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user