jtimon
commented at 7:41 pm on April 5, 2016:
contributor
This moves the CFeeRate and dust code out of libconsensus and the consensus module.
Before that, it prepares an empty CPolicy interface and implementation where the dust methods are moved to. It also encapsulates the global minRelayTxFee behind the CPolicy interface.
Since this may be too disruptive for one PR, I was very careful to separate things in smaller commits.
The first commit, for example, may be useful for @jonasschnelli ’s work encapsulating the wallet.
dcousens
commented at 0:42 am on April 6, 2016:
contributor
concept ACK
laanwj added the label
Refactoring
on Apr 6, 2016
jtimon force-pushed
on Apr 14, 2016
jtimon
commented at 3:58 pm on April 14, 2016:
contributor
Rebased(1).
Also, fixed the error that was making python ./qa/pull-tester/rpc-tests.py mempool_limit fail.
jtimon force-pushed
on Aug 30, 2016
jtimon force-pushed
on Oct 14, 2016
jtimon force-pushed
on Oct 14, 2016
jtimon force-pushed
on Oct 14, 2016
jtimon
commented at 6:07 pm on October 14, 2016:
contributor
Rebased and fixed one error, but it is still failing.
Still not sure what to do with AmountErrMsg and ParseAmountFromArgs. For the latter to use the former, both need to be put together in either util.o or ui_interface.o.
I pushed an alternative simpler option without creating the policy interface nor removing the global minRelayTxFee in https://github.com/bitcoin/bitcoin/compare/master...jtimon:0.13-consensus-dust-out-minimal.
NicolasDorier
commented at 2:06 am on October 15, 2016:
contributor
Concept ACK will review, can you check the failing travis ?
jtimon
commented at 3:08 pm on October 15, 2016:
contributor
I’m sorry, after sewgit’s rebase this did never passed travis (but this time I removed the known past mistakes, so it’s weird). That;s why I suggested https://github.com/bitcoin/bitcoin/compare/master...jtimon:0.13-consensus-dust-out-minimal which seems to work (locally).
At the same I promised @btcdrak I wouldn’t open parallel mutually exclusive PRs to see which one fails on travis or for people to compare and choose…
The travis error seemed related to CAmount becoming undefined for windows, but on the last push it also failed in another build.
I will keep investigating, but travis is what I meant by “it is still failing”.
jtimon
commented at 0:12 am on November 4, 2016:
contributor
ERROR-unittest: Consensus: Policy: MOVEONLY-ish: Rename dust methods from CTxOut to CPolicy
Consensus, because it moves non-consensus code out of the consensus module
Policy, because it moves policy code to the policy directory (server module)
Method Renames:
- s/CTxOut::GetDustThreshold(const CFeeRate&)/CDefaultPolicy::GetDustThreshold(const CTxOut&)/
- s/CTxOut::IsDust(const CFeeRate&)/CDefaultPolicy::AcceptDust(const CTxOut&)/
93f8f016e2
ERROR-unit-test_IsStandard: Policy: Introduce CPolicy::GetMinRelayFee() and use it everywhere except for dusta56cbadab1
Globals: Cleanly remove ::minRelayTxFeedaabe730db
jtimon force-pushed
on Dec 2, 2016
jtimon
commented at 5:45 am on December 5, 2016:
contributor
Apart from being failing tests and needing rebase, this is going to conflict with #9243. Replaced with the simpler branch I was suggesting that only moves CFeeRate without creating any policy class or interface: #9279
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me