Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the ogmios chain context performant #212

Open
2 tasks
nielstron opened this issue Apr 16, 2023 · 0 comments
Open
2 tasks

Make the ogmios chain context performant #212

nielstron opened this issue Apr 16, 2023 · 0 comments
Labels
enhancement New feature or request Feature request

Comments

@nielstron
Copy link
Contributor

I think to make the transaction building really performant I need instant access to chain tip, protocol parameters, epoch etc. Also UTxOs at an address should be as fast as possible, ideally cached.

To cover this, the context should be extended with two features

  • async threads that keep chain tip, protocol parameters etc up to date
  • a lock for the current state

The lock has this reasoning: When building a transaction, I want it to be built ASAP, no need to check the chain tip all the time. If the chain changes in a relevant way while building a transaction, the transaction is doomed anyways, so better be done fast with it. So during building a tx, lock the state including caching of utxos at addresses, locking the chain tip etc - make all accesses constant that can be made constant.

@nielstron nielstron added enhancement New feature or request Feature request labels Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature request
Projects
None yet
Development

No branches or pull requests

1 participant