add bonder's signature to BondTx

This commit is contained in:
Ethan Buchman
2015-05-20 19:36:55 -04:00
parent f78bde2e3e
commit d43c776e84
4 changed files with 14 additions and 5 deletions

View File

@ -497,6 +497,9 @@ func ExecTx(blockCache *BlockCache, tx_ types.Tx, runCall bool, evc events.Firea
if err := tx.PubKey.ValidateBasic(); err != nil {
return err
}
if !tx.PubKey.VerifyBytes(signBytes, tx.Signature) {
return types.ErrTxInvalidSignature
}
outTotal, err := validateOutputs(tx.UnbondTo)
if err != nil {
return err