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

Peer scoring monitoring and logs improvements #1745

Conversation

illuque-iov
Copy link

Improve Peer Scoring monitoring and logging

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:

Copy link
Contributor

@heitorfm heitorfm left a comment

Choose a reason for hiding this comment

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

Its interesting to add some javadoc to new classes, also there are some files missing the license header.

@illuque-iov illuque-iov reopened this Mar 31, 2022
@illuque-iov
Copy link
Author

Reopening, I think I've closed it by mistake with a shortcut or something...

@illuque-iov illuque-iov force-pushed the peer_scoring_monitoring_and_logs_improvements branch from 3b9144e to 3e4f482 Compare April 1, 2022 08:55
@illuque-iov illuque-iov changed the base branch from register_missing_bad_events_by_address to peer_scoring_review_feature April 8, 2022 11:56
Iago Lluque added 9 commits April 29, 2022 17:42
…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
@illuque-iov illuque-iov force-pushed the peer_scoring_monitoring_and_logs_improvements branch from 5300058 to 9ee20ec Compare May 2, 2022 07:54
@sonarcloud
Copy link

sonarcloud bot commented May 2, 2022

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 2 Code Smells

84.5% 84.5% Coverage
0.0% 0.0% Duplication

@illuque-iov illuque-iov merged commit df4455c into peer_scoring_review_feature May 2, 2022
@illuque-iov illuque-iov deleted the peer_scoring_monitoring_and_logs_improvements branch May 5, 2022 15:24
@aeidelman aeidelman added this to the Hop v4.1.0 milestone Jun 23, 2022
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.

4 participants