fix json for blocks
This commit is contained in:
parent
87c10a122b
commit
d5020b9b55
|
@ -71,7 +71,6 @@ function spec() {
|
||||||
return coinUtil.formatHashFull(tx.hash);
|
return coinUtil.formatHashFull(tx.hash);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reorgs enabled.
|
|
||||||
this.sync.storeTipBlock({
|
this.sync.storeTipBlock({
|
||||||
'hash': blockHash,
|
'hash': blockHash,
|
||||||
'tx': tx_hashes,
|
'tx': tx_hashes,
|
||||||
|
|
|
@ -137,7 +137,7 @@ function spec() {
|
||||||
});
|
});
|
||||||
}],
|
}],
|
||||||
function(err) {
|
function(err) {
|
||||||
if (!err) self._handleBroadcast(b, updatedTxs, updatedAddrs);
|
if (!err) self._handleBroadcast(b.hash, updatedTxs, updatedAddrs);
|
||||||
if (err && err.toString().match(/WARN/) ) {
|
if (err && err.toString().match(/WARN/) ) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
err=null;
|
err=null;
|
||||||
|
|
Loading…
Reference in New Issue