From 101d23d32bf5a0f15b1257cce3ddf307bb6cdf9f 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 6080eef0..7720cd4e 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
 
@@ -244,6 +245,7 @@ async def transaction_confirmation(
     if len(tx_amounts) > 1:
         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