Skip to content

Commit 451278d

Browse files
committed
Don't do anything at the 1th term's open
1th term open doesn't require any reward distribution since the 0th term is static validator consensus
1 parent 42a365c commit 451278d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/consensus/tendermint/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ impl ConsensusEngine for Tendermint {
165165

166166
if block_number == metadata.last_term_finished_block_num() + 1 {
167167
match term {
168-
0 => {}
168+
0 | 1 => {}
169169
_ => {
170170
let rewards = stake::drain_current_rewards(block.state_mut())?;
171171
let banned = stake::Banned::load_from_state(block.state())?;

0 commit comments

Comments
 (0)