Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: make sure we don't call processNextBlock's callback twi… (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch authored Jul 15, 2019
1 parent 05df2a6 commit 5a7dbaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/blockchain_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,9 @@ BlockchainDouble.prototype.processNextBlock = function(timestamp, callback) {
if (timestamp) {
self.data.blocks.last(function(err, last) {
if (err) {
return callback(err);
// it is safe to ignore this error as we only use the result
// to log a warning to the console.
return;
}
if (last && to.number(last.header.timestamp) > timestamp) {
self.logger.log(
Expand Down

0 comments on commit 5a7dbaf

Please sign in to comment.