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

Label transactions with inputs not using blockchain context, simplify their revalidation in mempool #2092

Open
kushti opened this issue Jan 5, 2024 · 1 comment
Assignees

Comments

@kushti
Copy link
Member

kushti commented Jan 5, 2024

Add new field to UnconfirmedTransaction , isUsingBlockchainContext used, which is set during first validation if any of inputs' ergotrees has isUsingBlockchainContext flag set ( ergoplatform/sigmastate-interpreter#929).

If flag is set, remember validation result in UnconfirmedTransaction as well (true / false along with cost).

And if flag is set, and validation result is true, check only that inputs still exist in CleanupWorker.validatePool

Dependent on 5.0.14 sigma-state release with ergoplatform/sigmastate-interpreter#929

@ccellado ccellado self-assigned this Jan 5, 2024
@ccellado
Copy link
Collaborator

Waiting for release

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

No branches or pull requests

2 participants