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

Add MEMPOOL rule #4622

Open
lehins opened this issue Sep 10, 2024 · 0 comments
Open

Add MEMPOOL rule #4622

lehins opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lehins
Copy link
Collaborator

lehins commented Sep 10, 2024

This MEMPOOL rule will be called by the LEDGER rule, regardless of the isValid flag.

It will only be called if the LedgerEnv will have a new flag leForMempool :: Bool set to True

This will rule will have a generic predicate failure:

newtype MempoolPredFailure era = MempoolPredFailure Text

that has a free form description of a failure.

Most of the time this rule will be empty, but because it will only be invoked on transactions that are being placed into the mempool it does not require a hardfork to have its behavior amended at any point in time.

In other words when LEDGERS rule will invoke LEDGER then leForMempool will be set to False and the MEMPOOL will not be invoked, thus preventing any change in Ledger behavior that could be induced by this new rule.

We will thus be able to use this rule as a sanitizer of undesired transactions with any node release without requiring a hard fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants