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

[sync]report peer. #1837

Merged
merged 1 commit into from
Dec 17, 2020
Merged

[sync]report peer. #1837

merged 1 commit into from
Dec 17, 2020

Conversation

tiangong3624749
Copy link
Contributor

No description provided.


impl Into<ReputationChange> for &ConnectBlockError {
fn into(self) -> ReputationChange {
ReputationChange::new(i32::min_value() / 2, stringify!(self))
Copy link
Member

Choose a reason for hiding this comment

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

得区分一下错误类型,比如 FutureBlock 就不能减分。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

得区分一下错误类型,比如 FutureBlock 就不能减分。

这个我是在调用的地方区分的

@jolestar jolestar merged commit 457ad34 into master Dec 17, 2020
@jolestar jolestar deleted the peer_reputation branch December 17, 2020 13:16
@jolestar jolestar mentioned this pull request Dec 23, 2020
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