From cef002139f4b3c7b44550882b580be4b9493a070 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Mon, 12 Oct 2015 13:09:40 -0400 Subject: [PATCH] Fix wallet compile after SigCache addition to NewEngine. --- rpcserver.go | 2 +- votingpool/withdrawal.go | 2 +- wallet/createtx.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index 78fe1d1..dc4b5be 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -3008,7 +3008,7 @@ func SignRawTransaction(w *wallet.Wallet, chainSvr *chain.Client, icmd interface // Either it was already signed or we just signed it. // Find out if it is completely satisfied or still needs more. vm, err := txscript.NewEngine(input, msgTx, i, - txscript.StandardVerifyFlags) + txscript.StandardVerifyFlags, nil) if err == nil { err = vm.Execute() } diff --git a/votingpool/withdrawal.go b/votingpool/withdrawal.go index e635f2b..0250360 100644 --- a/votingpool/withdrawal.go +++ b/votingpool/withdrawal.go @@ -1006,7 +1006,7 @@ func signMultiSigUTXO(mgr *waddrmgr.Manager, tx *wire.MsgTx, idx int, pkScript [ // given index, returning an error if it fails. func validateSigScript(msgtx *wire.MsgTx, idx int, pkScript []byte) error { vm, err := txscript.NewEngine(pkScript, msgtx, idx, - txscript.StandardVerifyFlags) + txscript.StandardVerifyFlags, nil) if err != nil { return newError(ErrTxSigning, "cannot create script engine", err) } diff --git a/wallet/createtx.go b/wallet/createtx.go index 81851a5..af5d86b 100644 --- a/wallet/createtx.go +++ b/wallet/createtx.go @@ -421,7 +421,7 @@ func signMsgTx(msgtx *wire.MsgTx, prevOutputs []wtxmgr.Credit, mgr *waddrmgr.Man func validateMsgTx(msgtx *wire.MsgTx, prevOutputs []wtxmgr.Credit) error { for i := range msgtx.TxIn { vm, err := txscript.NewEngine(prevOutputs[i].PkScript, - msgtx, i, txscript.StandardVerifyFlags) + msgtx, i, txscript.StandardVerifyFlags, nil) if err != nil { return fmt.Errorf("cannot create script engine: %s", err) }