You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should validate transactions using the local state (either with remote register API or local register index) instead of relying on the network to return invalid transaction error.
The problem we are facing now is that we have to wait for the network to process the transaction to figure out whether a nonce was incorrect, that is because we have no way to locally test if the nonce is correct for example. Once we have access to the state locally we can do such checks before submitting the transaction to the network and significantly lower the response time.
The transaction pool should then just return the hash of the transaction if valid or an error if invalid. The pool shouldn't have to wait for the transaction result, because that will anyway be done by requesting the transaction receipt.
We should validate transactions using the local state (either with remote register API or local register index) instead of relying on the network to return invalid transaction error.
The problem we are facing now is that we have to wait for the network to process the transaction to figure out whether a nonce was incorrect, that is because we have no way to locally test if the nonce is correct for example. Once we have access to the state locally we can do such checks before submitting the transaction to the network and significantly lower the response time.
The transaction pool should then just return the hash of the transaction if valid or an error if invalid. The pool shouldn't have to wait for the transaction result, because that will anyway be done by requesting the transaction receipt.
At that point we should refactor the transaction pool https://github.com/onflow/flow-evm-gateway/blob/main/services/requester/pool.go
The text was updated successfully, but these errors were encountered: