Skip to content

Commit 7ecaa56

Browse files
committed
fix off-by-one bug in fast sync
1 parent e19f283 commit 7ecaa56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

joinmarket/blockchaininterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def get_address_usages(self, wallet):
658658
used_indices[md][fc].append(i)
659659
wallet.addr_cache[wallet.get_addr(md, fc, i)] = (md, fc, i)
660660
if len(used_indices[md][fc]):
661-
wallet.index[md][fc] = used_indices[md][fc][-1]
661+
wallet.index[md][fc] = used_indices[md][fc][-1] + 1
662662
else:
663663
wallet.index[md][fc] = 0
664664
if not is_index_ahead_of_cache(wallet, md, fc):

0 commit comments

Comments
 (0)