Skip to content

Commit

Permalink
Tuning logging, more aggressive timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 20, 2023
1 parent 25bd631 commit 4f26436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth_defi/confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def wait_transactions_to_complete(
confirmation_block_count: int = 0,
max_timeout=datetime.timedelta(minutes=5),
poll_delay=datetime.timedelta(seconds=1),
node_switch_timeout=datetime.timedelta(minutes=3),
node_switch_timeout=datetime.timedelta(minutes=1),
) -> Dict[HexBytes, dict]:
"""Watch multiple transactions executed at parallel.
Expand Down Expand Up @@ -478,7 +478,7 @@ def wait_and_broadcast_multiple_nodes(
except TransactionNotFound as e:
# Happens on LlamaNodes - we have broadcasted the transaction
# but its nodes do not see it yet
logger.error("Node missing transaction broadcast %s", tx_hash.hex())
logger.warning("Node missing transaction broadcast %s", tx_hash.hex())
logger.exception(e)

unconfirmed_tx_strs = ", ".join([tx_hash.hex() for tx_hash in unconfirmed_txs])
Expand Down

0 comments on commit 4f26436

Please sign in to comment.