Skip to content

Commit e81dd2c

Browse files
remagpiesgkim126
authored andcommitted
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 0c79a1d commit e81dd2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)