unconfirmed utxo from internal wallet

This commit is contained in:
Jesse de Wit
2023-03-06 09:47:21 +01:00
parent 058dc9e1d3
commit 5023ee494e
3 changed files with 8 additions and 4 deletions

2
go.mod
View File

@@ -4,7 +4,7 @@ go 1.19
require ( require (
github.com/aws/aws-sdk-go v1.34.0 github.com/aws/aws-sdk-go v1.34.0
github.com/breez/lntest v0.0.19 github.com/breez/lntest v0.0.20
github.com/btcsuite/btcd v0.23.3 github.com/btcsuite/btcd v0.23.3
github.com/btcsuite/btcd/btcec/v2 v2.2.1 github.com/btcsuite/btcd/btcec/v2 v2.2.1
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1

View File

@@ -120,7 +120,7 @@ func newLspd(h *lntest.TestHarness, name string, nodeConfig *config.NodeConfig,
} }
} }
log.Printf("%+v", conf) log.Printf("%s: node config: %+v", name, conf)
confJson, _ := json.Marshal(conf) confJson, _ := json.Marshal(conf)
nodes := fmt.Sprintf(`NODES='[%s]'`, string(confJson)) nodes := fmt.Sprintf(`NODES='[%s]'`, string(confJson))
env := []string{ env := []string{

View File

@@ -25,10 +25,14 @@ func testOpenZeroConfUtxo(p *testParams) {
}) })
channelId := alice.WaitForChannelReady(channel) channelId := alice.WaitForChannelReady(channel)
// Send an unconfirmed utxo to the lsp tempaddr := lsp.LightningNode().GetNewAddress()
p.m.SendToAddress(tempaddr, 210000)
p.m.MineBlocks(6)
lsp.LightningNode().WaitForSync()
initialHeight := p.m.GetBlockHeight() initialHeight := p.m.GetBlockHeight()
addr := lsp.LightningNode().GetNewAddress() addr := lsp.LightningNode().GetNewAddress()
p.m.SendToAddress(addr, 200000) lsp.LightningNode().SendToAddress(addr, 200000)
log.Printf("Adding bob's invoices") log.Printf("Adding bob's invoices")
outerAmountMsat := uint64(2100000) outerAmountMsat := uint64(2100000)