fix GetProgress again.

This commit is contained in:
Christopher Jeffrey 2014-11-12 11:11:38 -08:00
parent 43652bb5c3
commit f659f1fe96

View File

@ -1719,11 +1719,10 @@ NAN_METHOD(GetProgress) {
Local<Function> callback = Local<Function>::Cast(args[0]);
CBlockIndex *pindex = chainActive.Tip();
async_block_data *data = new async_block_data();
data->err_msg = std::string("");
data->hash = pcoinsTip->GetBestBlock().GetHex(); // .ToString();
data->height = -1;
data->callback = Persistent<Function>::New(callback);