Main currently mixes protocol rules with policy rules like standard transactions check or minimum fees. All policy things should be encapsulated and moved out of main so that it's easier to implement alternative policies without adding complexity to core protocol code, for example, the replace by fee policy implemented in #4298. Since there are currently several PRs that greatly affect main (#4468 among others) and are a bigger priority than this, we should probably wait, but we can start collecting ideas on where to start with this refactor.
-
jtimon commented at 4:37 PM on September 18, 2014: contributor
- laanwj added the label Brainstorming on Dec 5, 2014
- laanwj added the label TX fees and policy on Dec 5, 2014
- jtimon cross-referenced this on Jan 21, 2015 from issue Policy: Create CPolicy interface and CStandardPolicy class implementing it by jtimon
-
meshcollider commented at 10:09 PM on March 6, 2018: contributor
I believe this is sufficiently reworked to close this PR now?
- MarcoFalke closed this on Mar 6, 2018
- bitcoin locked this on Sep 8, 2021
Contributors
Linked (view graph)
#4298 Add replace-by-fee logic to the mempool#4468 Headers-first synchronization#5071 Introduce CNodePolicy for putting isolated node policy code and parameters on#5114 Policy: Move CTxOut::IsDust() to policy.o#5180 WIP: Policy: Separate standard and testing policies#5595 Policy: Create CPolicy interface and CStandardPolicy class implementing it#5652 Policy: Continue policy movements