Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi: move MinHighPriority into mining package. #1421

Merged
merged 4 commits into from
Sep 12, 2018

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Aug 24, 2018

This PR requires #1417, #1418, #1419 and #1420.

Port of upstream commit a18f883.

@dnldd dnldd force-pushed the mv_minhighpriority branch from f2e6609 to 52efbde Compare August 24, 2018 13:06
@davecgh davecgh changed the title multi: move MinhighPriority into mining package. multi: move MinHighPriority into mining package. Aug 24, 2018
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit title has a typo in it.

MinhighPriority -> MinHighPriority

mempool/mempool.go Outdated Show resolved Hide resolved
@dnldd dnldd force-pushed the mv_minhighpriority branch from 52efbde to 1fc2502 Compare August 24, 2018 22:21
@@ -34,8 +34,10 @@ const (

// MinHighPriority is the minimum priority value that allows a
// transaction to be considered high priority.
//
// Deprecated: Use mining.MinHighPriority
// TODO: Remove in next version update.
MinHighPriority = dcrutil.AtomsPerCoin * 144.0 / 250
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than leaving the second definition, which can easily get out of date, please define this in terms of the new one. That is to say:

	// MinHighPriority is the minimum priority value that allows a
	// transaction to be considered high priority.
	//
	// Deprecated: Use mining.MinHighPriority
	// TODO: Remove in next version update.
	MinHighPriority = mining.MinHighPriority

@dnldd dnldd force-pushed the mv_minhighpriority branch from 1fc2502 to f5f97ed Compare August 25, 2018 12:47
@davecgh davecgh added this to the 1.4.0 milestone Sep 5, 2018
@dnldd dnldd force-pushed the mv_minhighpriority branch from f5f97ed to 1110580 Compare September 7, 2018 12:55
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, but I'll wait to merge until #1420 is finished since this one relies on it.

Port of upstream commit 2274d36 (subset). In preparation of the
removal of chainState.
Port of upstream commit 2274d36 (subset). In preparation of the
removal of chainState.
@dnldd dnldd force-pushed the mv_minhighpriority branch from 94b3ccd to 3b33c0c Compare September 12, 2018 15:44
@davecgh davecgh merged commit 3b33c0c into decred:master Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants