Skip to content

Commit

Permalink
[sync] change sync error reputation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Aug 16, 2021
1 parent e4ceb39 commit 3184d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/api/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ impl ConnectBlockError {
// future block do not change the reputation
pub const REP_FUTURE_BLOCK: ReputationChange = ReputationChange::new(0, "FutureBlock");
pub const REP_PARENT_NOT_EXIST: ReputationChange =
ReputationChange::new(i32::MIN / 2, "ParentNotExist");
ReputationChange::new_fatal("ParentNotExist");
pub const REP_VERIFY_BLOCK_FAILED: ReputationChange =
ReputationChange::new(i32::MIN / 2, "VerifyBlockFailed");
ReputationChange::new_fatal("VerifyBlockFailed");

pub fn reputation(&self) -> ReputationChange {
match self {
Expand Down

0 comments on commit 3184d82

Please sign in to comment.