Cleaner assertion
This commit is contained in:
parent
ed28515a95
commit
ae0afe389f
|
@ -2339,7 +2339,7 @@ def process_transfer(state: BeaconState, transfer: Transfer) -> None:
|
|||
assert (
|
||||
get_current_epoch(state) >= state.validator_registry[transfer.sender].withdrawable_epoch or
|
||||
state.validator_registry[transfer.sender].activation_epoch == FAR_FUTURE_EPOCH or
|
||||
transfer.amount + transfer.fee >= get_balance(statetransfer.sender) - get_effective_balance(transfer.sender)
|
||||
transfer.amount + transfer.fee + MAX_EFFECTIVE_BALANCE <= get_balance(transfer.sender)
|
||||
)
|
||||
# Verify that the pubkey is valid
|
||||
assert (
|
||||
|
|
Loading…
Reference in New Issue