1
0

interface.session: add default timeout to send_request

This commit is contained in:
SomberNight
2018-09-10 17:12:05 +02:00
parent fffec71fb3
commit b279d351d8
3 changed files with 14 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ class Synchronizer(PrintError):
await group.spawn(self.get_transaction, tx_hash)
async def get_transaction(self, tx_hash):
result = await asyncio.wait_for(self.session.send_request('blockchain.transaction.get', [tx_hash]), 20)
result = await self.session.send_request('blockchain.transaction.get', [tx_hash])
tx = Transaction(result)
try:
tx.deserialize()