mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 01:02:56 +02:00
itest: fix spawning temp miner
This commit is contained in:
parent
2a9b7ec536
commit
3a45492398
@ -29,14 +29,17 @@ func testOpenChannelAfterReorg(ht *lntest.HarnessTest) {
|
|||||||
ht.Skipf("skipping reorg test for neutrino backend")
|
ht.Skipf("skipping reorg test for neutrino backend")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a temp miner.
|
|
||||||
tempMiner := ht.SpawnTempMiner()
|
|
||||||
|
|
||||||
miner := ht.Miner()
|
miner := ht.Miner()
|
||||||
alice := ht.NewNodeWithCoins("Alice", nil)
|
alice := ht.NewNodeWithCoins("Alice", nil)
|
||||||
bob := ht.NewNode("Bob", nil)
|
bob := ht.NewNode("Bob", nil)
|
||||||
ht.EnsureConnected(alice, bob)
|
ht.EnsureConnected(alice, bob)
|
||||||
|
|
||||||
|
// Create a temp miner after the creation of Alice.
|
||||||
|
//
|
||||||
|
// NOTE: this is needed since NewNodeWithCoins will mine a block and
|
||||||
|
// the temp miner needs to sync up.
|
||||||
|
tempMiner := ht.SpawnTempMiner()
|
||||||
|
|
||||||
// Create a new channel that requires 1 confs before it's considered
|
// Create a new channel that requires 1 confs before it's considered
|
||||||
// open, then broadcast the funding transaction
|
// open, then broadcast the funding transaction
|
||||||
params := lntest.OpenChannelParams{
|
params := lntest.OpenChannelParams{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user