From 6782bf02b4578b07e09b9426534688377f7d4e86 Mon Sep 17 00:00:00 2001 From: Brian Corbin Date: Wed, 2 Mar 2022 12:53:50 -0800 Subject: [PATCH] sync up to the last block instead of excluding it (#262) --- full-service/src/service/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/full-service/src/service/sync.rs b/full-service/src/service/sync.rs index 970a19abd..58e846ca0 100644 --- a/full-service/src/service/sync.rs +++ b/full-service/src/service/sync.rs @@ -125,7 +125,7 @@ pub fn sync_all_accounts( for account in accounts { // If there are no new blocks for this account, don't do anything. - if account.next_block_index as u64 >= num_blocks - 1 { + if account.next_block_index as u64 > num_blocks - 1 { continue; } sync_account(ledger_db, wallet_db, &account.account_id_hex, logger)?;