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

transaction: add NoncePool #140

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mfycheng
Copy link
Contributor

Built on: #136

Adds the NoncePool implementation, which components can migrate to piece-wise.

Add preliminary (backwards compatible) support for a Claimed nonce
state. This state will be used in the future to indicate that a specific
server has 'claimed' a nonce for future use.

In this future system, servers will 'claim' a batch of Available nonces
for use in future transactions. This enables servers to cache nonces to
help reduce the overhead on acquiring a nonce per-intent. The defense
mechanism to abandoned claim is that claims will expire. Healthy servers
will refresh their claimed nonces periodically in the background.
Adds the ability to batch claim available nonce (by purpose) for
efficient use of claiming a set of nonces. This lays down the ground
work for nonce pools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant