コード例 #1
0
ファイル: test.py プロジェクト: josephyzhou/Lightning-1
 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()
コード例 #2
0
ファイル: test.py プロジェクト: salis/Lightning
 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()
コード例 #3
0
ファイル: test.py プロジェクト: salis/Lightning
 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()
コード例 #4
0
ファイル: test.py プロジェクト: josephyzhou/Lightning-1
 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()