Skip to content

Commit dc480e9

Browse files
remagpiemergify[bot]
authored andcommitted
Remove redundant variable in tendermint/engine
1 parent 0f28985 commit dc480e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/consensus/tendermint/engine.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ impl ConsensusEngine for Tendermint {
173173
return Ok(())
174174
}
175175

176-
let block_author = *block.header().author();
177-
stake::update_validator_weights(&mut block.state_mut(), &block_author)?;
176+
stake::update_validator_weights(&mut block.state_mut(), &author)?;
178177

179178
stake::add_intermediate_rewards(block.state_mut(), author, block_author_reward)?;
180179

0 commit comments

Comments
 (0)