Policy: Move CTxOut::IsDust() to policy.o#5114
Policy: Move CTxOut::IsDust() to policy.o#5114jtimon wants to merge 2 commits intobitcoin:masterfrom
Conversation
src/chainparams.h
Outdated
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.