mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
wallet: fix final compile error
This commit is contained in:
parent
28469c0315
commit
ef179b1e18
1 changed files with 2 additions and 2 deletions
|
@ -790,7 +790,7 @@ func (w *Wallet) CurrentAddress(account uint32) (btcutil.Address, error) {
|
||||||
|
|
||||||
// Get next chained address if the last one has already been used.
|
// Get next chained address if the last one has already been used.
|
||||||
if maddr.Used(addrmgrNs) {
|
if maddr.Used(addrmgrNs) {
|
||||||
addr, err = w.newAddress(addrmgrNs, account)
|
addr, err = w.newAddress(addrmgrNs, account, waddrmgr.WitnessPubKey)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2359,7 +2359,7 @@ func (w *Wallet) SignTransaction(tx *wire.MsgTx, hashType txscript.SigHashType,
|
||||||
// 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(prevOutScript, tx, i,
|
vm, err := txscript.NewEngine(prevOutScript, tx, i,
|
||||||
txscript.StandardVerifyFlags, nil)
|
txscript.StandardVerifyFlags, nil, nil, 0)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
err = vm.Execute()
|
err = vm.Execute()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue