-
Notifications
You must be signed in to change notification settings - Fork 38.7k
policy: ephemeral dust followups #31279
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
glozow
merged 29 commits into
bitcoin:master
from
instagibbs:2024-11-eph_dust_followups
Nov 25, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
cbf1a47
CheckEphemeralSpends: only compute txid of tx when needed
instagibbs 04a614b
Rename CheckValidEphemeralTx to PreCheckEphemeralTx
instagibbs 3ed930a
Have HasDust and PreCheckValidEphemeralTx take CTransaction
instagibbs 62016b3
Use std::ranges for ephemeral policy checks
instagibbs c6859ce
Move+rename GetDustIndexes -> GetDust
instagibbs dd9044b
ephemeral policy: IWYU
instagibbs c5c10fd
ephemeral policy doxygen cleanup
instagibbs ef94d84
bench: remove unnecessary CMTxn constructors
instagibbs 5fbcfd1
unit test: assert txid returned on CheckEphemeralSpends failures
instagibbs 15b6cbf
unit test: make dust index less magical
instagibbs bc0d98e
fuzz: remove dangling reference to GetEntry
instagibbs c041ad6
fuzz: explain package eval coin tracking better
instagibbs bedca1c
fuzz: Directly place transactions in vector
instagibbs 768a0c1
func: cleanup test_dustrelay comments
instagibbs 09ce926
func: cleanup reorg test comment
instagibbs 4dfdf61
fuzz: remove unused TransactionsDelta validation interface
instagibbs 445eaed
fuzz: use optional status instead of should_rbf_eph_spend
instagibbs 7c34901
fuzz: package_eval: move last_tx inside txn ctor
instagibbs ca050d1
unit test: adapt to changing MAX_DUST_OUTPUTS_PER_TX
instagibbs 08e969b
RPC: only enforce dust rules on priority when standardness active
instagibbs e5709a4
func: slight elaboration on submitpackage restriction
instagibbs 87b26e3
func: rename test_free_relay to test_no_minrelay_fee
instagibbs d9cfa5f
CheckEphemeralSpends: no need to iterate inputs if no parent dust
instagibbs 8424290
unit test: ephemeral_tests is using a dust relay rate, not minrelay
instagibbs cf0cee1
func: add note about lack of 1P1C propagation in tree submitpackage
instagibbs ba35a57
CheckEphemeralSpends: return boolean, and set child state and txid ou…
instagibbs d033acb
fuzz: package_eval: let fuzzer run out input in main tx creation loop
instagibbs ea5db2f
functional: only generate required blocks for test
instagibbs 466e4df
assert_mempool_contents: assert not duplicates expected
instagibbs 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,6 +131,8 @@ bool IsDust(const CTxOut& txout, const CFeeRate& dustRelayFee); | |
|
|
||
| bool IsStandard(const CScript& scriptPubKey, const std::optional<unsigned>& max_datacarrier_bytes, TxoutType& whichType); | ||
|
|
||
| /** Get the vout index numbers of all dust outputs */ | ||
| std::vector<uint32_t> GetDust(const CTransaction& tx, CFeeRate dust_relay_rate); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not |
||
|
|
||
| // Changing the default transaction version requires a two step process: first | ||
| // adapting relay policy by bumping TX_MAX_STANDARD_VERSION, and then later | ||
|
|
||
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.
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.
Uh oh!
There was an error while loading. Please reload this page.