multi: update btcwallet to v0.15.0

Update go.mod to point to latest btcwallet version.
This commit is contained in:
Elle Mouton
2022-04-28 15:31:59 +02:00
parent ddeccf8fcc
commit 5a08788a05
7 changed files with 50 additions and 32 deletions

View File

@@ -932,7 +932,17 @@ func (b *BtcWallet) LeaseOutput(id wtxmgr.LockID, op wire.OutPoint,
// ListLeasedOutputs returns a list of all currently locked outputs.
func (b *BtcWallet) ListLeasedOutputs() ([]*wtxmgr.LockedOutput, error) {
return b.wallet.ListLeasedOutputs()
leasedOutputs, err := b.wallet.ListLeasedOutputs()
if err != nil {
return nil, err
}
lockedOutputs := make([]*wtxmgr.LockedOutput, len(leasedOutputs))
for i, output := range leasedOutputs {
lockedOutputs[i] = output.LockedOutput
}
return lockedOutputs, nil
}
// ReleaseOutput unlocks an output, allowing it to be available for coin