Skip to content

Commit cde08e3

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 4850a58 commit cde08e3

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

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

0 commit comments

Comments
 (0)