Callback not called properly in _process for sync.

This commit is contained in:
Chris Kleeschulte 2017-05-12 16:23:17 -04:00
parent f2eaa1ae83
commit c080a62958
2 changed files with 2 additions and 1 deletions

View File

@ -157,7 +157,6 @@ DB.prototype.start = function(callback) {
mkdirp.sync(this.dataPath);
}
self.genesis = Block.fromBuffer(self.bitcoind.genesisBuffer);
self._store = levelup(self.dataPath, { db: self.levelupStore, keyEncoding: 'binary', valueEncoding: 'binary'});
self.store = {
@ -170,6 +169,7 @@ DB.prototype.start = function(callback) {
self.node.once('ready', function() {
self.genesis = Block.fromBuffer(self.bitcoind.genesisBuffer);
self.loadTips(function(err) {
if(err) {

View File

@ -260,6 +260,7 @@ BlockStream.prototype._getBlocks = function(heights, callback) {
}
self.push(null);
callback();
});
};