def setUp(self): # As in TestChannel, set up 3 nodes proxies = create_regnet.main() self.alice, self.bob, self.carol = proxies self.carol.bit.generate(101) self.propagate() self.carol.bit.sendmany( "", {self.alice.bit.getnewaddress(): 100000000, self.bob.bit.getnewaddress(): 100000000, }) self.propagate() # Set up channels between so the network is Alice - Carol - Bob self.alice.lit.create(self.carol.lurl, 50000000, 50000000) self.propagate() self.bob.lit.create(self.carol.lurl, 50000000, 50000000) self.propagate()
def setUp(self): # As in TestChannel, set up 3 nodes proxies = create_regnet.main() self.alice, self.bob, self.carol = proxies self.carol.bit.generate(101) self.propagate() self.carol.bit.sendmany( "", { self.alice.bit.getnewaddress(): 100000000, self.bob.bit.getnewaddress(): 100000000, }) self.propagate() # Set up channels between so the network is Alice - Carol - Bob self.alice.lit.create(self.carol.lurl, 50000000, 50000000) self.propagate() self.bob.lit.create(self.carol.lurl, 50000000, 50000000) self.propagate()
def setUp(self): # Set up 3 nodes: Alice, Bob, and Carol proxies = create_regnet.main() self.alice, self.bob, self.carol = proxies # self.alice.bit is an interface to bitcoind, # self.alice.lit talks to the lightning node # self.alice.lurl is Alice's identifier # Carol will be the miner and generate all the blocks # Generate 101 blocks so that Carol has funds self.carol.bit.generate(101) self.propagate() # Give 1 BTC each to Alice and Bob self.carol.bit.sendmany( "", { self.alice.bit.getnewaddress(): 100000000, self.bob.bit.getnewaddress(): 100000000, }) self.propagate()
def setUp(self): # Set up 3 nodes: Alice, Bob, and Carol proxies = create_regnet.main() self.alice, self.bob, self.carol = proxies # self.alice.bit is an interface to bitcoind, # self.alice.lit talks to the lightning node # self.alice.lurl is Alice's identifier # Carol will be the miner and generate all the blocks # Generate 101 blocks so that Carol has funds self.carol.bit.generate(101) self.propagate() # Give 1 BTC each to Alice and Bob self.carol.bit.sendmany( "", {self.alice.bit.getnewaddress(): 100000000, self.bob.bit.getnewaddress(): 100000000, }) self.propagate()