From 64e68be07d78e25dc067d15fe7f2f804f4611a15 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 12 Nov 2014 11:57:04 -0800 Subject: [PATCH] progress working. --- src/bitcoindjs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 082538ce..101a67f9 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -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::New(callback);