Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Consider supporting using ethers-middleware's TimeLag rather than ad-hoc solutions #1034

Open
nyospe opened this issue May 12, 2022 · 1 comment

Comments

@nyospe
Copy link
Contributor

nyospe commented May 12, 2022

See e.g. latest_confirmed_block_number https://github.com/EspressoSystems/cape/blob/main/eqs/src/configuration.rs#L27

It would be better to explicitly make the connection's Middleware assume the correct lag, and make optimistic calls against that connection explicit.

@sveitser
Copy link
Contributor

Thanks for finding this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants