Merge pull request #208 from matiu/bug/fix-block-bcast

fix json for blocks
This commit is contained in:
Matias Alejo Garcia 2014-02-09 20:47:10 -02:00
commit 70a305c34a
2 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,6 @@ function spec() {
return coinUtil.formatHashFull(tx.hash);
});
// Reorgs enabled.
this.sync.storeTipBlock({
'hash': blockHash,
'tx': tx_hashes,

View File

@ -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;