multi: update btcwallet to v0.15.0

Update go.mod to point to latest btcwallet version.
This commit is contained in:
Elle Mouton committed 2022-05-11 08:45:06 +02:00
1 parent ddeccf8fcc
commit 5a08788a05
7 files changed
+50 -32

No files matched your search

+11 -1
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
+9 -7
View File
@@ -3405,13 +3405,15 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
var chainConn *chain.BitcoindConn
err = wait.NoError(func() error {
chainConn, err = chain.NewBitcoindConn(&chain.BitcoindConfig{
ChainParams: netParams,
Host: host,
User: "weks",
Pass: "weks",
ZMQBlockHost: zmqBlockHost,
ZMQTxHost: zmqTxHost,
ZMQReadDeadline: 5 * time.Second,
ChainParams: netParams,
Host: host,
User: "weks",
Pass: "weks",
ZMQConfig: &chain.ZMQConfig{
ZMQBlockHost: zmqBlockHost,
ZMQTxHost: zmqTxHost,
ZMQReadDeadline: 5 * time.Second,
},
// Fields only required for pruned nodes, not
// needed for these tests.
Dialer: nil,