Open luciorubeens opened 2 years ago
@EmerisHQ/emeris-backend
Adding some context:
The /chain/osmosis/numbers/<keyhash>
endpoint hits the chain nodes directly using RPC and returns the result. I'm pretty sure this endpoint is cached by nginx for 2 seconds so we might want to take this into account as well.
I think the delay you are seeing could be because our nodes takes a while to sync between each other (e.g. the transaction was made to node X and you are asking numbers to node Y, but you need to wait some seconds for node Y to be in sync). I'm not sure if there's much we can do here, nothing "easy" comes to my mind 😕
Describe the bug
The response from the
/chain/osmosis/numbers/<keyhash>
endpoint is not updated immediately, especially notable when sending a multi-hop swap on osmosis.To Reproduce Steps to reproduce the behavior:
Try to make a swap immediately after another on osmosis chain.
Solution
A workaround could be to retry if it returns this code error.