Fix build.
This fixes the build after btcsuite/btcd#302, which renamed the txscript constant ScriptCanonicalSignatures constant to ScriptVerifyDERSignatures.
This commit is contained in:
parent
8b6c161cbc
commit
d9e2443002
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ func signMsgTx(msgtx *wire.MsgTx, prevOutputs []txstore.Credit, store *keystore.
|
|||
}
|
||||
|
||||
func validateMsgTx(msgtx *wire.MsgTx, prevOutputs []txstore.Credit) error {
|
||||
flags := txscript.ScriptCanonicalSignatures | txscript.ScriptStrictMultiSig
|
||||
flags := txscript.ScriptVerifyDERSignatures | txscript.ScriptStrictMultiSig
|
||||
bip16 := time.Now().After(txscript.Bip16Activation)
|
||||
if bip16 {
|
||||
flags |= txscript.ScriptBip16
|
||||
|
|
|
@ -2841,7 +2841,7 @@ func SignRawTransaction(w *Wallet, chainSvr *chain.Client, icmd btcjson.Cmd) (in
|
|||
|
||||
// Either it was already signed or we just signed it.
|
||||
// Find out if it is completely satisfied or still needs more.
|
||||
flags := txscript.ScriptBip16 | txscript.ScriptCanonicalSignatures |
|
||||
flags := txscript.ScriptBip16 | txscript.ScriptVerifyDERSignatures |
|
||||
txscript.ScriptStrictMultiSig
|
||||
engine, err := txscript.NewScript(txIn.SignatureScript, input,
|
||||
i, msgTx, flags)
|
||||
|
|
Loading…
Add table
Reference in a new issue