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

mining: Export block template fields. #258

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 30, 2016

Upstream commit a3fa066.

Also updates all of the new references for the newly exported fields as part of the merge commit.

dajohi and others added 2 commits April 10, 2016 01:12
This prevents the node from repeatedly requesting and rejecting the
same transaction as different peers inv the same transaction.

Idea from Bitcoin Core commit 0847d9cb5fcd2fdd5a21bde699944d966cf5add9

Also, limit the number of both requested blocks and transactions.
This simply exports and adds some comments to the fields of the
BlockTemplate struct.

This is primarily being done as a step toward being able to separate the
mining code into its own package, but also it makes sense on its own
because code that requests new block template necessarily examines the
returned fields which implies they should be exported.
@jcvernaleo jcvernaleo added this to the v0.1.5 milestone May 31, 2016
Upstream commit a3fa066.

Also updates all of the new references for the newly exported fields as
part of the merge commit.
@davecgh davecgh force-pushed the merge_mining_export_blocktemplate_fields branch from 30d7f9b to 2ad0b1a Compare June 1, 2016 18:26
@alexlyp
Copy link
Member

alexlyp commented Jun 1, 2016

utACK looks good. waiting for @jolan to test mining

@cjepson
Copy link
Contributor

cjepson commented Jun 1, 2016

utACK, should be OK

@jolan
Copy link
Contributor

jolan commented Jun 1, 2016

Someone else is aggressively mining testnet right now but seems fine with 2 blocks mined.

@alexlyp alexlyp merged commit 2ad0b1a into decred:master Jun 1, 2016
@davecgh davecgh deleted the merge_mining_export_blocktemplate_fields branch June 1, 2016 19:37
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.

6 participants