-
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-691] simplify MempoolItem
#18143
Conversation
57aeec5
to
9c685f6
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
9c685f6
to
7590f1b
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Pull Request Test Coverage Report for Build 9643415868Details
💛 - Coveralls |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
7590f1b
to
e4cd4d8
Compare
e4cd4d8
to
71c3f65
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
1 similar comment
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…tions directly, rather than the NPCResult. A mempool item is guaranteed to be valid, so the error state of NPCResult will never be engaged anyway.
71c3f65
to
64a3a6c
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
the missing coverage was pre-existing |
Purpose:
Simplify
MempoolItem
,InternalMempoolItem
and their uses.Currently
MempoolItem
andInternalMempoolItem
contain anNPCResult
field. theNPCResult
field is essentially a sum-type ofSpendBundleConditions
or an error. However,MempoolItem
s never contain the error. This patch replaces theNPCResult
with the success-state,SpendBundleConditions
.Current Behavior:
MempoolItem
andInternalMempoolItem
contain error states that are never engaged.New Behavior:
MempoolItem
andInternalMempoolItem
are simpler, since theSpendBundleconditions
exist unconditionally, it's not optional.Testing Notes: