From 8916533a2ae8daabd07f848875ed29b9b63cc24e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 6 May 2023 21:03:03 -0600 Subject: [PATCH] set archive_request to true on transaction retrying --- web3_proxy/src/app/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index e2e1e0df..048dbda1 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1577,9 +1577,13 @@ impl Web3ProxyApp { ) .await?; - // if we got "null", it is probably because the tx is old. retry requiring nodes with old block data + // if we got "null", it is probably because the tx is old. retry on nodes with old block data if let Some(ref result) = response.result { if result.get() == "null" { + request_metadata + .archive_request + .store(true, atomic::Ordering::Release); + response = self .balanced_rpcs .try_proxy_connection(