Skip to content

Commit

Permalink
Fix wallet compile after SigCache addition to NewEngine.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvernaleo committed Oct 12, 2015
1 parent 31d1526 commit cef0021
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpcserver.go
Expand Up @@ -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()
}
Expand Down
2 changes: 1 addition & 1 deletion votingpool/withdrawal.go
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion wallet/createtx.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit cef0021

Please sign in to comment.