Skip to content

Conversation

jtimon
Copy link
Contributor

@jtimon jtimon commented Oct 21, 2014

Built on top of #5100.
Decouples CTxOut from CFeeRate.
Related to #5071 , now IsDust can become a method of CNodePolicy.

#include "chainparamsbase.h"
#include "core/block.h"
Copy link

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.

@jtimon
Copy link
Contributor Author

jtimon commented Oct 28, 2014

Rebased to make it more readable.

@sipa
Copy link
Member

sipa commented Oct 29, 2014

If you're moving it, can you move it to main instead? It really doesn't belong in core..

@jtimon jtimon force-pushed the dust branch 2 times, most recently from 9a8a9be to 2d6dc1c Compare October 30, 2014 12:28
@jtimon
Copy link
Contributor Author

jtimon commented Oct 30, 2014

Moved it to policy.o, where I think it belongs.

@sipa
Copy link
Member

sipa commented Nov 4, 2014

utACK

@jtimon
Copy link
Contributor Author

jtimon commented Nov 5, 2014

We have to take into account that this will conflict with #5071.

@jtimon
Copy link
Contributor Author

jtimon commented Dec 27, 2014

Needed rebase (was including core/transaction instead of privitives/transaction).

@petertodd
Copy link
Contributor

utACK

@jtimon
Copy link
Contributor Author

jtimon commented Dec 29, 2014

Added a couple of potential improvements to comment on (moving global minRelayTxFee from main to policy and hiding it for IsDust() calls).
Also it needed a small include rebase.

@petertodd
Copy link
Contributor

utACK

@jtimon jtimon changed the title Turn CTxOut::IsDust() into an independent function Move CTxOut::IsDust() to policy.o Jan 3, 2015
@jtimon jtimon changed the title Move CTxOut::IsDust() to policy.o Policy: Move CTxOut::IsDust() to policy.o Jan 3, 2015
@jtimon
Copy link
Contributor Author

jtimon commented Jan 3, 2015

Sorry for touching it again, moved to 2 commits instead of 3. Now it shares the first commit with #5180.

@sipa
Copy link
Member

sipa commented Jan 4, 2015

Untested ACK

@jtimon jtimon mentioned this pull request Jan 8, 2015
@jtimon jtimon force-pushed the dust branch 2 times, most recently from 3cbfc5a to eff5330 Compare January 12, 2015 23:13
@jtimon jtimon force-pushed the dust branch 2 times, most recently from fc5f6d5 to e6d753e Compare January 21, 2015 13:36
@jtimon
Copy link
Contributor Author

jtimon commented Jan 21, 2015

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.

@jtimon
Copy link
Contributor Author

jtimon commented Jul 12, 2015

Reopened. I was waiting for #5595 #6068, but no real reason to keep waiting.
I'm also moving CFeeRate out of consensus to policy/fees (previously was necessary for primitives/transaction).

jtimon added 2 commits July 16, 2015 20:28
…(CTxOut)

Decouples CTxOut from CFeeRate
Simplifies IsDust() interface encapsulating the access to global minRelayTxFee
@jtimon
Copy link
Contributor Author

jtimon commented Jul 20, 2015

Needs rebase and I'm thinking about moving the functions to the fee estimator (policy/fees) instead of policy/policy, so closing for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants