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 Dec 13, 2023
1 parent a694ad7 commit f835fd0
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 f835fd0

Please sign in to comment.