-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[CHIA-1087] Simplify batch pre validate blocks #18602
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arvidn
added
the
Changed
Required label for PR that categorizes merge commit message as "Changed" for changelog
label
Sep 18, 2024
arvidn
force-pushed
the
simplify-batch_pre_validate_blocks
branch
from
September 18, 2024 11:39
4e40404
to
456c4d5
Compare
AmineKhaldi
previously approved these changes
Sep 19, 2024
github-actions
bot
added
the
merge_conflict
Branch has conflicts that prevent merge to main
label
Sep 23, 2024
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
arvidn
force-pushed
the
simplify-batch_pre_validate_blocks
branch
from
September 23, 2024 23:45
456c4d5
to
63489b6
Compare
github-actions
bot
removed
the
merge_conflict
Branch has conflicts that prevent merge to main
label
Sep 23, 2024
Conflicts have been resolved. A maintainer will review the pull request shortly. |
arvidn
changed the title
Simplify batch pre validate blocks
[CHIA-1087] Simplify batch pre validate blocks
Sep 24, 2024
AmineKhaldi
approved these changes
Sep 24, 2024
wjblanke
approved these changes
Sep 26, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aok
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Changed
Required label for PR that categorizes merge commit message as "Changed" for changelog
ready_to_merge
Submitter and reviewers think this is ready
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is best reviewed one commit at a time.
Purpose:
We currently use
NPCResults
in many places where the error cannot be set. This PR is a small step towards using the (inner)SpendBundleConditions
directly in those cases.Specifically, it makes
batch_pre_validate_blocks()
take a dict ofSpendBundleConditions
instead ofNPCResults
.It also introduces an early exit in case
get_name_puzzle_conditions()
returns a failure.The
PreValidationResults
still contains anNPCResult
, as it's a bit more work to make it useSpendBundleConditions
directly. Although, it could; the error is not allowed to be set.Current Behavior:
batch_pre_validate_blocks()
takes a dict ofuint32
->NPCResult
.New Behavior:
batch_pre_validate_blocks()
takes a dict ofuint32
->SpendBundleConditions
.