-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Policy: Move CTxOut::IsDust() to policy.o #5114
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
Conversation
src/chainparams.h
Outdated
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.
Nit: Should be below checkpoints.
14aab3e to
ec74278
Compare
|
Rebased to make it more readable. |
|
If you're moving it, can you move it to main instead? It really doesn't belong in core.. |
9a8a9be to
2d6dc1c
Compare
|
Moved it to policy.o, where I think it belongs. |
|
utACK |
|
We have to take into account that this will conflict with #5071. |
|
Needed rebase (was including core/transaction instead of privitives/transaction). |
|
utACK |
|
Added a couple of potential improvements to comment on (moving global minRelayTxFee from main to policy and hiding it for IsDust() calls). |
d127235 to
1652df6
Compare
|
utACK |
|
Sorry for touching it again, moved to 2 commits instead of 3. Now it shares the first commit with #5180. |
|
Untested ACK |
3cbfc5a to
eff5330
Compare
fc5f6d5 to
e6d753e
Compare
|
I am very sorry for delaying this again, but I'm closing until it's clear how the first step for policy should be. Something I invite reviewers to discuss at #5595 where I've placed some examples. |
…(CTxOut) Decouples CTxOut from CFeeRate Simplifies IsDust() interface encapsulating the access to global minRelayTxFee
|
Needs rebase and I'm thinking about moving the functions to the fee estimator (policy/fees) instead of policy/policy, so closing for now. |
Built on top of #5100.
Decouples CTxOut from CFeeRate.
Related to #5071 , now IsDust can become a method of CNodePolicy.