Skip to content

Commit

Permalink
refactor: set poll_latency to 1s in wait_for_transaction_receipt (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuArce authored Feb 14, 2024
1 parent 3fe62f8 commit 5c7df16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm-bot/src/services/ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,4 @@ def send_raw_transaction(signed_tx, rpc_node=main_rpc_node):

@use_fallback(rpc_nodes, logger, "Failed to wait for transaction receipt")
def wait_for_transaction_receipt(tx_hash, rpc_node=main_rpc_node):
rpc_node.w3.eth.wait_for_transaction_receipt(tx_hash)
rpc_node.w3.eth.wait_for_transaction_receipt(tx_hash, poll_latency=1)

0 comments on commit 5c7df16

Please sign in to comment.