From 5023ee494e38dc4392823b8bf3e8e5d3c84104da Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 6 Mar 2023 09:47:21 +0100 Subject: [PATCH] unconfirmed utxo from internal wallet --- go.mod | 2 +- itest/lspd_node.go | 2 +- itest/zero_conf_utxo_test.go | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index f91db20..4085f37 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( 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/btcec/v2 v2.2.1 github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 diff --git a/itest/lspd_node.go b/itest/lspd_node.go index a8d2e70..b8c6186 100644 --- a/itest/lspd_node.go +++ b/itest/lspd_node.go @@ -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) nodes := fmt.Sprintf(`NODES='[%s]'`, string(confJson)) env := []string{ diff --git a/itest/zero_conf_utxo_test.go b/itest/zero_conf_utxo_test.go index 1733912..d366a65 100644 --- a/itest/zero_conf_utxo_test.go +++ b/itest/zero_conf_utxo_test.go @@ -25,10 +25,14 @@ func testOpenZeroConfUtxo(p *testParams) { }) 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() addr := lsp.LightningNode().GetNewAddress() - p.m.SendToAddress(addr, 200000) + lsp.LightningNode().SendToAddress(addr, 200000) log.Printf("Adding bob's invoices") outerAmountMsat := uint64(2100000)