From f659f1fe9687e264f7d3c4c9bb45a1d34a1eab8a Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 12 Nov 2014 11:11:38 -0800 Subject: [PATCH] fix GetProgress again. --- src/bitcoindjs.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index 2db53f6b..082538ce 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -1719,11 +1719,10 @@ NAN_METHOD(GetProgress) { Local callback = Local::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::New(callback);