From 12e16b0e58637829fd7b943b269b5eab105a3de4 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 7 Oct 2022 10:58:06 -0400 Subject: [PATCH] adding extra delay to give web3 providers more time to synch and load transactions --- flashbots/flashbots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flashbots/flashbots.py b/flashbots/flashbots.py index 6359145..038d4d8 100644 --- a/flashbots/flashbots.py +++ b/flashbots/flashbots.py @@ -96,7 +96,8 @@ def wait(self) -> bool: self.w3.eth.get_transaction(self.tx["hash"]) return True except TransactionNotFound: - if self.w3.eth.block_number > self.max_block_number: + # Add 1 to give web3 provider more time to sync and cache transactions + if self.w3.eth.block_number > self.max_block_number + 1: return False time.sleep(1)