Exemple #1
0
 async def test_wallet_connects_despite_lack_of_udp(self):
     conductor = Conductor()
     conductor.spv_node.udp_port = '0'
     await conductor.start_blockchain()
     self.addCleanup(conductor.stop_blockchain)
     await conductor.start_spv()
     self.addCleanup(conductor.stop_spv)
     self.assertFalse(conductor.spv_node.server.bp.status_server.is_running)
     await asyncio.wait_for(conductor.start_wallet(), timeout=5)
     self.addCleanup(conductor.stop_wallet)
     self.assertTrue(conductor.wallet_node.ledger.network.is_connected)
Exemple #2
0
 async def asyncSetUp(self):
     self.conductor = Conductor(seed=self.SEED)
     await self.conductor.start_blockchain()
     self.addCleanup(self.conductor.stop_blockchain)
     await self.conductor.start_spv()
     self.addCleanup(self.conductor.stop_spv)
     await self.conductor.start_wallet()
     self.addCleanup(self.conductor.stop_wallet)
     self.blockchain = self.conductor.blockchain_node
     self.wallet_node = self.conductor.wallet_node
     self.manager = self.wallet_node.manager
     self.ledger = self.wallet_node.ledger
     self.wallet = self.wallet_node.wallet
     self.account = self.wallet_node.wallet.default_account
Exemple #3
0
 async def asyncSetUp(self):
     self.conductor = Conductor(seed=self.SEED)
     await self.conductor.start_lbcd()
     self.addCleanup(self.conductor.stop_lbcd)
     await self.conductor.start_lbcwallet()
     self.addCleanup(self.conductor.stop_lbcwallet)
     await self.conductor.start_spv()
     self.addCleanup(self.conductor.stop_spv)
     await self.conductor.start_wallet()
     self.addCleanup(self.conductor.stop_wallet)
     await self.conductor.start_hub()
     self.addCleanup(self.conductor.stop_hub)
     self.blockchain = self.conductor.lbcwallet_node
     self.hub = self.conductor.hub_node
     self.wallet_node = self.conductor.wallet_node
     self.manager = self.wallet_node.manager
     self.ledger = self.wallet_node.ledger
     self.wallet = self.wallet_node.wallet
     self.account = self.wallet_node.wallet.default_account