mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-19 06:44:23 +01:00
unconfirmed utxo from internal wallet
This commit is contained in:
2
go.mod
2
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
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user