up
This commit is contained in:
parent
4038bb8588
commit
0a3a5e70cf
1 changed files with 4 additions and 1 deletions
|
|
@ -7,8 +7,11 @@ export const setupNetwork = async () => {
|
||||||
const core = new BitcoinCoreWrapper(settings)
|
const core = new BitcoinCoreWrapper(settings)
|
||||||
await core.InitAddress()
|
await core.InitAddress()
|
||||||
await core.Mine(1)
|
await core.Mine(1)
|
||||||
await new Promise(resolve => setTimeout(resolve, 500))
|
|
||||||
const lnd = new LND(settings.lndSettings, () => { }, () => { }, () => { }, () => { })
|
const lnd = new LND(settings.lndSettings, () => { }, () => { }, () => { }, () => { })
|
||||||
|
await lnd.ConnectPeer({ pubkey: '03cc09d839293195eb10af7df99e5ba5bbac12c2526ec67d174dcbc84d9c97bae4', host: "bob:9735" })
|
||||||
|
await lnd.ConnectPeer({ pubkey: '0232842d81b2423df97aa8a264f8c0811610a736af65afe2e145279f285625c1e4', host: "carol:9735" })
|
||||||
|
await lnd.ConnectPeer({ pubkey: '027c50fde118af534ff27e59da722422d2f3e06505c31e94c1b40c112c48a83b1c', host: "dave:9735" })
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 500))
|
||||||
for (let i = 0; i < 30; i++) {
|
for (let i = 0; i < 30; i++) {
|
||||||
try {
|
try {
|
||||||
const info = await lnd.GetInfo()
|
const info = await lnd.GetInfo()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue