Skip to content

Commit

Permalink
chaindb: scan block check for null instead of falsy.
Browse files Browse the repository at this point in the history
0 is falsy, so this would fail for the value of 0.
  • Loading branch information
nodech committed Oct 31, 2023
1 parent 7605095 commit 15b572a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blockchain/chaindb.js
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ class ChainDB {
*/

async scanBlock(blockID, filter) {
assert(blockID);
assert(blockID != null);

const entry = await this.getEntry(blockID);

Expand Down

0 comments on commit 15b572a

Please sign in to comment.