progress working.

This commit is contained in:
Christopher Jeffrey 2014-11-12 11:57:04 -08:00
parent f659f1fe96
commit 64e68be07d

View File

@ -1721,7 +1721,9 @@ NAN_METHOD(GetProgress) {
async_block_data *data = new async_block_data();
data->err_msg = std::string("");
data->hash = pcoinsTip->GetBestBlock().GetHex(); // .ToString();
CBlockIndex *pindex = chainActive.Tip();
data->hash = pindex->GetBlockHash().GetHex(); // .ToString();
//data->hash = pcoinsTip->GetBestBlock().GetHex(); // .ToString();
data->height = -1;
data->callback = Persistent<Function>::New(callback);