Skip to content

Commit

Permalink
fix(congestion): correct trie key for buffered receipts (#11294)
Browse files Browse the repository at this point in the history
Somehow this got in wrong, using delayed receipts instead of buffered
receipts. Perhaps a rebasing error, perhaps just wrong copy-paste from
the beginning...

Anyway, the new tests I'm adding right now are exposing this. But the
error is big enough that I think it should be fixed explicitly, not as a
drive-by in a number of general tests.
  • Loading branch information
jakmeier authored May 14, 2024
1 parent c2af502 commit 384e280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/src/trie/receipts_column_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl TrieQueue for OutgoingReceiptBuffer<'_> {
}

fn trie_key(&self, index: u64) -> TrieKey {
TrieKey::DelayedReceipt { index }
TrieKey::BufferedReceipt { index, receiving_shard: self.shard_id }
}
}

Expand Down

0 comments on commit 384e280

Please sign in to comment.