From 492eb4f66a27cf97ee6dc8de337d70e587ba7820 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Thu, 30 Dec 2021 14:09:50 +0100 Subject: [PATCH] Start syncing from address index 0 by default (#848) * start syncing from address index 0 by default * add change file --- .changes/syncing.md | 6 ++++++ src/account/sync/mod.rs | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/syncing.md diff --git a/.changes/syncing.md b/.changes/syncing.md new file mode 100644 index 000000000..70a57bb07 --- /dev/null +++ b/.changes/syncing.md @@ -0,0 +1,6 @@ +--- +"nodejs-binding": patch +--- + +Start syncing from address index 0 by default; +Don't skip unconfirmed messages during syncing; diff --git a/src/account/sync/mod.rs b/src/account/sync/mod.rs index 6b5c9ea87..b8139c80b 100644 --- a/src/account/sync/mod.rs +++ b/src/account/sync/mod.rs @@ -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 {