Skip to content

Commit

Permalink
The reactivate state would not get reset in case of rebranch.
Browse files Browse the repository at this point in the history
  • Loading branch information
ii-cruz committed Sep 17, 2024
1 parent 72c0f74 commit c6d5822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ where
// We check this in the last possible block of the validity window
let tx_validity_window_start = validator_state.inactive_tx_validity_window_start;
if block_number
== tx_validity_window_start + Policy::transaction_validity_window_blocks() - 1
>= tx_validity_window_start + Policy::transaction_validity_window_blocks() - 1
{
let blockchain = self.blockchain.read();
let staking_state = self.get_staking_state(&blockchain);
Expand Down

0 comments on commit c6d5822

Please sign in to comment.