This commit is contained in:
Dimitris Apostolou 2022-04-25 22:45:28 +03:00 committed by GitHub
parent 16b53d1733
commit b15bc8a2e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -466,7 +466,7 @@ where
{
let mut tx_id_error = None;
// Retry the finalized tx ID query if it was interruped by a finalizing block,
// Retry the finalized tx ID query if it was interrupted by a finalizing block,
// and the non-finalized chain doesn't overlap the changed heights.
for _ in 0..=FINALIZED_ADDRESS_INDEX_RETRIES {
let (finalized_tx_ids, finalized_tip_range) =
@ -627,7 +627,7 @@ fn apply_tx_id_changes(
chain_tx_ids: BTreeMap<TransactionLocation, transaction::Hash>,
) -> BTreeMap<TransactionLocation, transaction::Hash> {
// Correctness: compensate for inconsistent tx IDs finalized blocks across multiple addresses,
// by combining them with overalapping non-finalized block tx IDs.
// by combining them with overlapping non-finalized block tx IDs.
finalized_tx_ids
.into_iter()
.chain(chain_tx_ids.into_iter())