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:
Dave Collins 2013-10-25 10:53:40 -05:00 committed by Josh Rickmar
parent 618b885e9e
commit 24a5645fce

View file

@ -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
}