switch sense of bls_verify check
This commit is contained in:
parent
de2cad0e12
commit
f77016af68
|
@ -391,7 +391,7 @@ proc processTransfers(state: var BeaconState, blck: BeaconBlock,
|
||||||
from_field: transfer.from_field, to: transfer.to,
|
from_field: transfer.from_field, to: transfer.to,
|
||||||
amount: transfer.amount, fee: transfer.fee, slot: transfer.slot,
|
amount: transfer.amount, fee: transfer.fee, slot: transfer.slot,
|
||||||
signature: EMPTY_SIGNATURE))
|
signature: EMPTY_SIGNATURE))
|
||||||
if bls_verify(
|
if not bls_verify(
|
||||||
pubkey=transfer.pubkey, transfer_message, transfer.signature,
|
pubkey=transfer.pubkey, transfer_message, transfer.signature,
|
||||||
get_domain(state.fork, slot_to_epoch(transfer.slot), DOMAIN_TRANSFER)):
|
get_domain(state.fork, slot_to_epoch(transfer.slot), DOMAIN_TRANSFER)):
|
||||||
notice "Transfer: incorrect signature"
|
notice "Transfer: incorrect signature"
|
||||||
|
|
Loading…
Reference in New Issue