Skip to content

Commit 836a2a0

Browse files
Hyunsik Jeongsgkim126
authored andcommitted
Do not broadcast a proposal block when it's verified
Every node uses the pull gossip, so there's no reason to broadcast.
1 parent 8fc767d commit 836a2a0

File tree

1 file changed

+0
-9
lines changed
  • core/src/consensus/tendermint

1 file changed

+0
-9
lines changed

core/src/consensus/tendermint/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,6 @@ impl TendermintInner {
725725
self.broadcast_proposal_block(encoded::Block::new(sealed_block.rlp_bytes()));
726726
}
727727

728-
fn on_verified_proposal(&self, verified_block_data: encoded::Block) {
729-
self.broadcast_proposal_block(verified_block_data);
730-
}
731-
732728
fn verify_block_basic(&self, header: &Header) -> Result<(), Error> {
733729
let seal_length = header.seal().len();
734730
let expected_seal_fields = self.seal_fields(header);
@@ -1207,11 +1203,6 @@ impl ConsensusEngine<CodeChainMachine> for Tendermint {
12071203
guard.is_proposal(header)
12081204
}
12091205

1210-
fn on_verified_proposal(&self, verified_block_data: encoded::Block) {
1211-
let guard = self.inner.lock();
1212-
guard.on_verified_proposal(verified_block_data)
1213-
}
1214-
12151206
fn set_signer(&self, ap: Arc<AccountProvider>, address: Address, password: Option<Password>) {
12161207
let mut guard = self.inner.lock();
12171208
guard.set_signer(ap, address, password)

0 commit comments

Comments
 (0)