fix orphanazer
This commit is contained in:
parent
fd4f6e82cc
commit
0881b8e538
|
@ -313,7 +313,7 @@ var kk=0;
|
||||||
},
|
},
|
||||||
//store it
|
//store it
|
||||||
function(c) {
|
function(c) {
|
||||||
if (self.prevHash && blockinfo.prev_block !== self.prevHash) {
|
if (self.prevHash && blockInfo.prev_block !== self.prevHash) {
|
||||||
|
|
||||||
console.log('Orphans found: @%s', blockInfo.hash);
|
console.log('Orphans found: @%s', blockInfo.hash);
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ function spec() {
|
||||||
return hash && hash !== toBlock;
|
return hash && hash !== toBlock;
|
||||||
},
|
},
|
||||||
function (w_c) {
|
function (w_c) {
|
||||||
self.txDb.setOrphan(c, function(err, insertedTxs, updateAddrs) {
|
self.txDb.setOrphan(hash, function(err, insertedTxs, updateAddrs) {
|
||||||
if (err) return w_c(err);
|
if (err) return w_c(err);
|
||||||
self.blockDb.setOrphan(hash, function(err, prevHash){
|
self.blockDb.setOrphan(hash, function(err, prevHash){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue