mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
add bonder's signature to BondTx
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -288,6 +288,7 @@ func TestTxs(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
tx.Signature = privAccounts[0].Sign(tx).(account.SignatureEd25519)
|
||||
tx.Inputs[0].Signature = privAccounts[0].Sign(tx)
|
||||
err := execTxWithState(state, tx, true)
|
||||
if err != nil {
|
||||
@@ -344,6 +345,7 @@ func TestAddValidator(t *testing.T) {
|
||||
},
|
||||
},
|
||||
}
|
||||
bondTx.Signature = acc0.Sign(bondTx).(account.SignatureEd25519)
|
||||
bondTx.Inputs[0].Signature = acc0.Sign(bondTx)
|
||||
|
||||
// Make complete block and blockParts
|
||||
|
||||
Reference in New Issue
Block a user