Skip to content

Commit

Permalink
sync up to the last block instead of excluding it (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
briancorbin authored Mar 2, 2022
1 parent 656ea5b commit 6782bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion full-service/src/service/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 6782bf0

Please sign in to comment.