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;