Skip to content

Commit

Permalink
check leftover unpruned outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnaveira committed Aug 31, 2023
1 parent d0ea406 commit 0a54d80
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,12 @@ impl<'a, B: BlockchainBackend + 'static> HorizonStateSynchronization<'a, B> {
last_sync_timer = Instant::now();
}

if !unpruned_outputs.is_empty() {
return Err(HorizonSyncError::IncorrectResponse(
"Sync node sent leftover unpruned outputs".to_string(),
));
}

if mmr_position != end {
return Err(HorizonSyncError::IncorrectResponse(
"Sync node did not send all utxos requested".to_string(),
Expand Down

0 comments on commit 0a54d80

Please sign in to comment.