switch sense of bls_verify check

This commit is contained in:
Dustin Brody 2019-02-22 11:17:53 -08:00
parent de2cad0e12
commit f77016af68
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ proc processTransfers(state: var BeaconState, blck: BeaconBlock,
from_field: transfer.from_field, to: transfer.to,
amount: transfer.amount, fee: transfer.fee, slot: transfer.slot,
signature: EMPTY_SIGNATURE))
if bls_verify(
if not bls_verify(
pubkey=transfer.pubkey, transfer_message, transfer.signature,
get_domain(state.fork, slot_to_epoch(transfer.slot), DOMAIN_TRANSFER)):
notice "Transfer: incorrect signature"