fix orphanazer

This commit is contained in:
Matias Alejo Garcia 2014-02-04 14:14:09 -03:00
parent fd4f6e82cc
commit 0881b8e538
2 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ var kk=0;
},
//store it
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);

View File

@ -104,7 +104,7 @@ function spec() {
return hash && hash !== toBlock;
},
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);
self.blockDb.setOrphan(hash, function(err, prevHash){