Skip to content

Commit

Permalink
Start syncing from address index 0 by default (#848)
Browse files Browse the repository at this point in the history
* start syncing from address index 0 by default

* add change file
  • Loading branch information
Thoralf-M authored Dec 30, 2021
1 parent df7b417 commit 492eb4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/syncing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"nodejs-binding": patch
---

Start syncing from address index 0 by default;
Don't skip unconfirmed messages during syncing;
3 changes: 1 addition & 2 deletions src/account/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,7 @@ impl AccountSynchronizer {
};
Self {
account_handle,
// by default we synchronize from the latest address (supposedly unspent)
address_index: latest_address_index,
address_index: 0,
gap_limit: if latest_address_index == 0 {
default_gap_limit
} else {
Expand Down

0 comments on commit 492eb4f

Please sign in to comment.