Skip to content

Commit

Permalink
logging the fake blooms
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Nov 6, 2024
1 parent 2853299 commit 278c19e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions crates/ethcore/src/engines/hbbft/hbbft_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1673,12 +1673,15 @@ impl Engine<EthereumMachine> for HoneyBadgerBFT {
}

fn on_close_block(&self, block: &mut ExecutedBlock) -> Result<(), Error> {

let bloom = Bloom::repeat_byte(255);
warn!(
"faking bloom filter on_close_block for block {}",
block.header.number()
"faking bloom filter on_close_block for block {} {}",
block.header.number(),
bloom
);
block.header.set_log_bloom(Bloom::repeat_byte(255));

block.header.set_log_bloom(bloom);
if let Some(address) = self.params.block_reward_contract_address {
// only if no block reward skips are defined for this block.
let header_number = block.header.number();
Expand Down

0 comments on commit 278c19e

Please sign in to comment.