forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
backport: merge bitcoin#19940, #19498, #19339, #19753, #20581, #20834, #21062, #21783, #21121, #22084, partial bitcoin#19668, #20833 (mempool backports) #5834
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9c6c82b
merge bitcoin#19940: Return fee and vsize from testmempoolaccept
kwvg cbbf608
merge bitcoin#19498: Tidy up ProcessOrphanTx
kwvg 4acad29
merge bitcoin#19339: re-delegate absurd fee checking from mempool to …
kwvg 2d64620
merge bitcoin#19753: don't add AlreadyHave transactions to recentRejects
kwvg 7f535b1
merge bitcoin#20581: Don't make "in" parameters look like "out"/"in-o…
kwvg 5efc930
merge bitcoin#20834: locks and docs in ATMP and CheckInputsFromMempoo…
kwvg 6238ed2
merge bitcoin#21062: return MempoolAcceptResult from ATMP
kwvg 0d76475
merge bitcoin#21783: Make MempoolAcceptResult members const
kwvg 142790c
partial bitcoin#19668: Make runtime lock checks require compile-time …
kwvg e2dda59
merge bitcoin#21121: Small unit test improvements, including helper t…
kwvg 792b430
partial bitcoin#20833: enable packages through testmempoolaccept
kwvg a7ebe53
merge bitcoin#22084: package testmempoolaccept followups
kwvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| Updated RPCs | ||
| ------------ | ||
|
|
||
| - The `testmempoolaccept` RPC returns `vsize` and a `fee` object with the `base` fee | ||
| if the transaction passes validation. | ||
| - The `testmempoolaccept` RPC now accepts multiple transactions (still experimental at the moment, | ||
| API may be unstable). This is intended for testing transaction packages with dependency | ||
| relationships; it is not recommended for batch-validating independent transactions. In addition to | ||
| mempool policy, package policies apply: the list cannot contain more than 25 transactions or have a | ||
| total size exceeding 101K virtual bytes, and cannot conflict with (spend the same inputs as) each other or | ||
| the mempool. There are some known limitations to the accuracy of the test accept: it's possible for | ||
| `testmempoolaccept` to return "allowed"=True for a group of transactions, but "too-long-mempool-chain" | ||
| if they are actually submitted. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
why we can't drop it?
Uh oh!
There was an error while loading. Please reload this page.
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.
CoinJoin code expects that ATMP will check fee sanity because unlike every other non-RPC/non-GUI
AcceptToMemoryPoolcall which uses annAbsurdFeevalue of0(to skip absurd fee checking), CoinJoin code in a few places usesDEFAULT_MAX_RAW_TX_FEE(not to be confused withDEFAULT_MAX_RAW_TX_FEE_RATE, which has the same value, except asCFeeRateas opposed toCAmount) asnAbsurdFee, triggering the fee check.Perhaps it could be refactored to be removed entirely but that's outside the scope of the PR and the backport attempts to preserve functionality as-is on the CoinJoin front.