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

BlockCollector detects repeated block #172

Merged
merged 1 commit into from
May 1, 2021

Conversation

wuxuer
Copy link
Contributor

@wuxuer wuxuer commented Apr 8, 2021

BlockCollector detects repeated block from same observer and exclude it from block counting

#165

Signed-off-by: wuxu wuxu1103@163.com

Copy link
Member

@guoger guoger left a comment

Choose a reason for hiding this comment

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

I'm generally Okay with the approach, but with some minor concerns

pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/benchmark_test.go Outdated Show resolved Hide resolved
@wuxuer wuxuer force-pushed the issue165 branch 4 times, most recently from 13cb5d8 to c699269 Compare April 13, 2021 00:40
@wuxuer wuxuer requested a review from guoger April 13, 2021 01:06
pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/block_collector.go Show resolved Hide resolved
pkg/infra/benchmark_test.go Outdated Show resolved Hide resolved
pkg/infra/block_collector_test.go Outdated Show resolved Hide resolved
pkg/infra/block_collector_test.go Outdated Show resolved Hide resolved
pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/observer.go Outdated Show resolved Hide resolved
pkg/infra/block_collector.go Outdated Show resolved Hide resolved
pkg/infra/observer.go Outdated Show resolved Hide resolved
BlockCollector detects repeated block from same observer and exclude it from block counting

Hyperledger-TWGC#165

Signed-off-by: wuxu <wuxu1103@163.com>
@SamYuan1990 SamYuan1990 enabled auto-merge (squash) May 1, 2021 02:22
@SamYuan1990 SamYuan1990 disabled auto-merge May 1, 2021 02:22
@SamYuan1990 SamYuan1990 enabled auto-merge (squash) May 1, 2021 02:23
@SamYuan1990 SamYuan1990 disabled auto-merge May 1, 2021 02:23
@SamYuan1990 SamYuan1990 requested review from guoger and SamYuan1990 and removed request for guoger May 1, 2021 02:29
// AddressedBlock describe the source of block
type AddressedBlock struct {
*peer.FilteredBlock
Address int // source peer's number
Copy link
Member

@guoger guoger May 1, 2021

Choose a reason for hiding this comment

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

it would be nice to rename this field to PeerIdx in followup PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants