Skip to content
Snippets Groups Projects
Commit 83cc2dba authored by Moul's avatar Moul
Browse files

[fix] #232: tx: Use async.sleep() inbetween wot requests

Too much requests at the same time to determine the corresponding uid was rejected by BMA
parent e59c8f56
No related branches found
No related tags found
No related merge requests found
Pipeline #8720 passed
...@@ -31,6 +31,7 @@ from silkaj.constants import ( ...@@ -31,6 +31,7 @@ from silkaj.constants import (
SOURCES_PER_TX, SOURCES_PER_TX,
MINIMAL_TX_AMOUNT, MINIMAL_TX_AMOUNT,
CENT_MULT_TO_UNIT, CENT_MULT_TO_UNIT,
ASYNC_SLEEP,
) )
from silkaj.tui import display_amount, display_pubkey from silkaj.tui import display_amount, display_pubkey
...@@ -236,6 +237,7 @@ async def transaction_confirmation( ...@@ -236,6 +237,7 @@ async def transaction_confirmation(
# display outputs and amounts # display outputs and amounts
for outputAddress, tx_amount in zip(outputAddresses, tx_amounts): for outputAddress, tx_amount in zip(outputAddresses, tx_amounts):
await display_pubkey(tx, "to", outputAddress) await display_pubkey(tx, "to", outputAddress)
await sleep(ASYNC_SLEEP)
display_amount(tx, "amount", tx_amount, ud_value, currency_symbol) display_amount(tx, "amount", tx_amount, ud_value, currency_symbol)
# display last informations # display last informations
if outputBackChange: if outputBackChange:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment