Introduce Retry Mechanism for eth_call
to handle Incomplete or delayed smart contract state updates
#2328
Labels
eth_call
to handle Incomplete or delayed smart contract state updates
#2328
When using
eth_call
, the returned state may be outdated or incomplete in scenarios where:pending
block parameter).latest
block parameter).This issue can result in unexpected or failed responses, especially in use cases like querying smart contract storage (eg
TakerPaymentState
ofTakerPayment
)https://github.com/KomodoPlatform/etomic-swap/blob/bbdeb369eab0753454dae29640adaa4fdba221ba/contracts/EtomicSwapTakerV2.sol#L10
The inconsistency arises due to delayed transaction propagation or confirmation.
Proposed Solution
To address this, here is a proposal of a retry mechanism with the following features:
eth_call
returns an unexpected result or fails, retry the call until a valid result is returned or a timeout is reached.This solution applies to scenario where accurate state retrieval depends on pending or recently confirmed transactions: eg Smart contract storage queries (e.g., mappings, enums) during atomic swap.
The text was updated successfully, but these errors were encountered: