set archive_request to true on transaction retrying
This commit is contained in:
parent
aff53ce36a
commit
8916533a2a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user