Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Peer scoring review feature #1782

Merged
merged 27 commits into from
Jun 16, 2022
Merged

Peer scoring review feature #1782

merged 27 commits into from
Jun 16, 2022

Conversation

illuque-iov
Copy link

Fixes on Peer Scoring functionality in order to enable it on a paced way.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

@illuque-iov illuque-iov force-pushed the peer_scoring_review_feature branch from 0990302 to 4f4fa17 Compare May 27, 2022 08:47
@illuque-iov
Copy link
Author

pipeline:run

Vovchyk
Vovchyk previously approved these changes Jun 1, 2022
@@ -433,4 +441,11 @@ private void removePendingMessage(long messageId, MessageType messageType) {
pendingMessages.remove(messageId);
logger.trace("Pending {}@{} REMOVED", messageType, messageId);
}

private void logSyncIssue(Peer peer, String message, Object[] messageArgs) {
String completeMessage = "Node [{}] " + message;
Copy link
Contributor

Choose a reason for hiding this comment

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

return if ! logger.isTraceEnabled() ?

Iago Lluque added 27 commits June 16, 2022 10:01
…s failing with this branch codebasae:

Issue 1)
Current branch is adding some logs and node banning process was a bit slower.
 - node was banned, for 10ms (before, this was increased now)
 - we read node reputation expecting it false, but it was true already, node was forgiven because the 10ms had passed before our read

Issue 2)
Current branch is setting punishmentTime to 0 on endPunishment and merged test was not prepared for that
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

84.5% 84.5% Coverage
0.0% 0.0% Duplication

@Vovchyk
Copy link
Contributor

Vovchyk commented Jun 16, 2022

pipeline:run

@Vovchyk Vovchyk merged commit 6521082 into master Jun 16, 2022
@Vovchyk Vovchyk deleted the peer_scoring_review_feature branch June 16, 2022 10:29
@aeidelman aeidelman added this to the Hop v4.1.0 milestone Jun 23, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants