Skip to content

Commit f7573fa

Browse files
authored
Update plugin-adapter.py
re increase a bit timeout values, from 1 to 2 on few calls
1 parent d224d76 commit f7573fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugin-adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ async def get_block_count(currency):
560560

561561
socket = coins[currency]['socket']
562562

563-
res = await socket.send_message("getblockcount", (), timeout=1)
563+
res = await socket.send_message("getblockcount", (), timeout=2)
564564

565565
if res == OS_ERROR or res == OTHER_EXCEPTION:
566566
return None
@@ -575,7 +575,7 @@ async def get_plugin_fees(currency):
575575

576576
socket = coins[currency]['socket']
577577

578-
res = await socket.send_message("blockchain.relayfee", (), timeout=1)
578+
res = await socket.send_message("blockchain.relayfee", (), timeout=2)
579579

580580
if res == OS_ERROR or res == OTHER_EXCEPTION:
581581
return None

0 commit comments

Comments
 (0)