Update for recent btcchain tx script val change.
The ValidateTransactionScripts was recently changed to accept script flags which pass through to the script engine in order to control its validation behavior. This commit modifies the transaction memory pool script validation code for this change and additionally adds the new flag to perform canonical signtaure checking.
This commit is contained in:
parent
618b885e9e
commit
24a5645fce
1 changed files with 2 additions and 1 deletions
|
@ -706,7 +706,8 @@ func (mp *txMemPool) maybeAcceptTransaction(tx *btcwire.MsgTx, isOrphan *bool) e
|
|||
|
||||
// Verify crypto signatures for each input and reject the transaction if
|
||||
// any don't verify.
|
||||
err = btcchain.ValidateTransactionScripts(tx, &txHash, time.Now(), txStore)
|
||||
flags := btcscript.ScriptBip16 | btcscript.ScriptCanonicalSignatures
|
||||
err = btcchain.ValidateTransactionScripts(tx, &txHash, txStore, flags)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue