Skip to content

Commit cc13190

Browse files
kpop-dfinityNikolaMilosa
authored andcommitted
feat(Consensus): Enable the hashes-in-blocks feature
With the flag set to `true`, we will strip all ingress messages from blocks, before sending them to peers. On a receiver side, we will reconstruct the blocks by looking up the referenced ingress messages in the ingress pool or, if they are not there, by fetching missing ingress messages from peers who are advertising the blocks.
1 parent 8822742 commit cc13190

File tree

1 file changed

+1
-1
lines changed
  • rs/replica/setup_ic_network/src

1 file changed

+1
-1
lines changed

rs/replica/setup_ic_network/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ use tower_http::trace::TraceLayer;
6565
/// we will reconstruct the blocks by looking up the referenced ingress messages in the ingress
6666
/// pool or, if they are not there, by fetching missing ingress messages from peers who are
6767
/// advertising the blocks.
68-
const HASHES_IN_BLOCKS_FEATURE_ENABLED: bool = false;
68+
const HASHES_IN_BLOCKS_FEATURE_ENABLED: bool = true;
6969

7070
pub const MAX_ADVERT_BUFFER: usize = 100_000;
7171
/// This limit is used to protect against a malicious peer advertising many ingress messages.

0 commit comments

Comments
 (0)