Skip to content

Commit ae8afc6

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 797f7dd commit ae8afc6

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
@@ -160,7 +160,7 @@ impl ConsensusEngine for Tendermint {
160160

161161
if block_number == metadata.last_term_finished_block_num() + 1 {
162162
match term {
163-
0 => {}
163+
0 | 1 => {}
164164
_ => {
165165
let rewards = stake::drain_current_rewards(block.state_mut())?;
166166
let banned = stake::Banned::load_from_state(block.state())?;

0 commit comments

Comments
 (0)