Seems a bit confusing to put policy stuff into validation, so fix that.
Also fix includes via iwyu
.
Seems a bit confusing to put policy stuff into validation, so fix that.
Also fix includes via iwyu
.
Also fix includes using iwyu
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
CTxMemPool
from ArgsManager
by dongcarl)If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
57@@ -58,8 +58,6 @@ namespace Consensus {
58 struct Params;
59 } // namespace Consensus
60
61-/** Default for -minrelaytxfee, minimum relay fee for transactions */
62-static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
What do you think to move too the following default values validation.h
from in policy.h
?
DEFAULT_ANCESTOR_LIMIT
DEFAULT_ANCESTOR_SIZE_LIMIT
DEFAULT_DESCENDANT_LIMIT
DEFAULT_DESCENDANT_SIZE_LIMIT
DEFAULT_MEMPOOL_EXPIRY
Code review ACK fa4068b4e2192f168bb120624eca5735f0dadf6f. Make sense to move the global variable to policy/settings and the default constant to policy/policy. Ariard points out other constants that could be moved, which seems fine, but it seems like moving the global variable to be with other related global variables is more significant.
I think this variable was just forgotten in 4a75c9d6512a5580e60104103ea11d2cd9586354 from #15638 which moved other variables because it wasn’t used by wallet code
MarcoFalke
DrahtBot
ariard
ryanofsky
Labels
Refactoring