Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evlekht committed Nov 5, 2024
1 parent d1b9a3d commit cefb0c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vms/platformvm/txs/executor/camino_tx_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,11 @@ func (e *CaminoProposalTxExecutor) RewardValidatorTx(tx *txs.RewardValidatorTx)
}

// TODO @evlekht if after Berlin we don't have any txs that hit this if, we can move it up, before phase if block
// This is sanity check for consistency between address state
// and validator presence in deferred stakers
if nodeOwnerAddressState.IsNot(as.AddressStateNodeDeferred) {
return errAddrStateNotChanged
// should never happen
return fmt.Errorf("deferred node owner address state doesn't have AddressStateNodeDeferred bit: %w", errAddrStateNotChanged)
}

addrState := nodeOwnerAddressState &^ as.AddressStateNodeDeferred
Expand Down

0 comments on commit cefb0c5

Please sign in to comment.