From 83cc2dba72a21c1cd377df07b22aaafe3503292a Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Thu, 5 Mar 2020 23:01:22 +0100
Subject: [PATCH] [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
---
 silkaj/tx.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/silkaj/tx.py b/silkaj/tx.py
index 74768215..24cf2cda 100644
--- a/silkaj/tx.py
+++ b/silkaj/tx.py
@@ -31,6 +31,7 @@ from silkaj.constants import (
     SOURCES_PER_TX,
     MINIMAL_TX_AMOUNT,
     CENT_MULT_TO_UNIT,
+    ASYNC_SLEEP,
 )
 from silkaj.tui import display_amount, display_pubkey
 
@@ -236,6 +237,7 @@ async def transaction_confirmation(
     # display outputs and amounts
     for outputAddress, tx_amount in zip(outputAddresses, tx_amounts):
         await display_pubkey(tx, "to", outputAddress)
+        await sleep(ASYNC_SLEEP)
         display_amount(tx, "amount", tx_amount, ud_value, currency_symbol)
     # display last informations
     if outputBackChange:
-- 
GitLab