From d5020b9b559c487e841d26145ab779d473779e7f Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 9 Feb 2014 19:46:40 -0300 Subject: [PATCH] fix json for blocks --- lib/PeerSync.js | 1 - lib/Sync.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/PeerSync.js b/lib/PeerSync.js index dab7094..091b50c 100644 --- a/lib/PeerSync.js +++ b/lib/PeerSync.js @@ -71,7 +71,6 @@ function spec() { return coinUtil.formatHashFull(tx.hash); }); - // Reorgs enabled. this.sync.storeTipBlock({ 'hash': blockHash, 'tx': tx_hashes, diff --git a/lib/Sync.js b/lib/Sync.js index 5e4fbbc..6718953 100644 --- a/lib/Sync.js +++ b/lib/Sync.js @@ -137,7 +137,7 @@ function spec() { }); }], function(err) { - if (!err) self._handleBroadcast(b, updatedTxs, updatedAddrs); + if (!err) self._handleBroadcast(b.hash, updatedTxs, updatedAddrs); if (err && err.toString().match(/WARN/) ) { console.log(err); err=null;