Skip to content

Commit

Permalink
Merge pull request #907 from tronprotocol/develop
Browse files Browse the repository at this point in the history
merge from develop
  • Loading branch information
zhaohong authored May 31, 2018
2 parents 3d292ec + 28d733b commit 0f6a77d
Show file tree
Hide file tree
Showing 8 changed files with 288 additions and 279 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@ public boolean isReputationPenalized() {
return false;
}

public boolean isPenalized() {
return tronLastLocalDisconnectReason == ReasonCode.NULL_IDENTITY ||
tronLastRemoteDisconnectReason == ReasonCode.NULL_IDENTITY ||
tronLastLocalDisconnectReason == ReasonCode.BAD_PROTOCOL ||
tronLastRemoteDisconnectReason == ReasonCode.BAD_PROTOCOL ||
tronLastLocalDisconnectReason == ReasonCode.SYNC_FAIL ||
tronLastRemoteDisconnectReason == ReasonCode.SYNC_FAIL;
}

public void nodeDisconnectedRemote(ReasonCode reason) {
lastDisconnectedTime = System.currentTimeMillis();
tronLastRemoteDisconnectReason = reason;
Expand Down
Loading

0 comments on commit 0f6a77d

Please sign in to comment.