Skip to content

Commit 3bb1900

Browse files
committed
off by one
1 parent a0e9a89 commit 3bb1900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/prof7bit/bitcoin/wallettool/fileformats/WalletDatHandler.xtend

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class WalletDat {
336336
val pagesize = head.pageSize
337337
val last_pgno = head.lastPgno
338338

339-
for (pgno : 0..last_pgno) {
339+
for (pgno : 0..<last_pgno) {
340340
// find all first leaves. Actually there are at
341341
// least 2 trees in every wallet file, so we
342342
// will find two first leaves.

0 commit comments

Comments
 (0)