mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-09-10 04:29:47 +00:00
Fix wallet compile after SigCache addition to NewEngine.
This commit is contained in:
parent
31d152608b
commit
cef002139f
3 changed files with 3 additions and 3 deletions
|
@ -3008,7 +3008,7 @@ func SignRawTransaction(w *wallet.Wallet, chainSvr *chain.Client, icmd interface
|
||||||
// Either it was already signed or we just signed it.
|
// Either it was already signed or we just signed it.
|
||||||
// Find out if it is completely satisfied or still needs more.
|
// Find out if it is completely satisfied or still needs more.
|
||||||
vm, err := txscript.NewEngine(input, msgTx, i,
|
vm, err := txscript.NewEngine(input, msgTx, i,
|
||||||
txscript.StandardVerifyFlags)
|
txscript.StandardVerifyFlags, nil)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = vm.Execute()
|
err = vm.Execute()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ func signMultiSigUTXO(mgr *waddrmgr.Manager, tx *wire.MsgTx, idx int, pkScript [
|
||||||
// given index, returning an error if it fails.
|
// given index, returning an error if it fails.
|
||||||
func validateSigScript(msgtx *wire.MsgTx, idx int, pkScript []byte) error {
|
func validateSigScript(msgtx *wire.MsgTx, idx int, pkScript []byte) error {
|
||||||
vm, err := txscript.NewEngine(pkScript, msgtx, idx,
|
vm, err := txscript.NewEngine(pkScript, msgtx, idx,
|
||||||
txscript.StandardVerifyFlags)
|
txscript.StandardVerifyFlags, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newError(ErrTxSigning, "cannot create script engine", err)
|
return newError(ErrTxSigning, "cannot create script engine", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -421,7 +421,7 @@ func signMsgTx(msgtx *wire.MsgTx, prevOutputs []wtxmgr.Credit, mgr *waddrmgr.Man
|
||||||
func validateMsgTx(msgtx *wire.MsgTx, prevOutputs []wtxmgr.Credit) error {
|
func validateMsgTx(msgtx *wire.MsgTx, prevOutputs []wtxmgr.Credit) error {
|
||||||
for i := range msgtx.TxIn {
|
for i := range msgtx.TxIn {
|
||||||
vm, err := txscript.NewEngine(prevOutputs[i].PkScript,
|
vm, err := txscript.NewEngine(prevOutputs[i].PkScript,
|
||||||
msgtx, i, txscript.StandardVerifyFlags)
|
msgtx, i, txscript.StandardVerifyFlags, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("cannot create script engine: %s", err)
|
return fmt.Errorf("cannot create script engine: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue