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

eth, miner: perfer to locally generated uncle #17715

Merged
merged 2 commits into from
Sep 20, 2018

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Sep 20, 2018

Need to wait #17720 be merged first

miner/worker.go Outdated Show resolved Hide resolved
miner/worker.go Outdated
uncles = append(uncles, uncle.Header())
}
uncles := make([]*types.Header, 0, 2)
commitUncle := func(blocks map[common.Hash]*types.Block) {
Copy link
Member

Choose a reason for hiding this comment

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

commitUncle -> commitUncles

Might as well move the uncle cleaning loop in here too, removes some code duplication.

@karalabe karalabe added this to the 1.8.16 milestone Sep 20, 2018
@karalabe karalabe force-pushed the perfer-local-uncle branch 2 times, most recently from b48fa5a to f137c30 Compare September 20, 2018 12:31
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit 457e930 into ethereum:master Sep 20, 2018
nizsheanez referenced this pull request in nizsheanez/go-ethereum Sep 21, 2018
* core, eth: fix dependency cycle

* eth, miner: perfer to locally generated uncle
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.

2 participants