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

Review: Bonus Score System and Likehillihood #276

Closed
SurfingNerd opened this issue Nov 24, 2024 · 2 comments
Closed

Review: Bonus Score System and Likehillihood #276

SurfingNerd opened this issue Nov 24, 2024 · 2 comments
Assignees

Comments

@SurfingNerd
Copy link
Collaborator

During investigating of the problems of alpha5, i noticed strange results for Likehillihood and Bonus Scores.

starting with this comment:
DMDcoin/alpha4#3 (comment)

@axel-muller
Copy link
Collaborator

axel-muller commented Nov 25, 2024

Logs provided in DMDcoin/alpha4#3 (comment) looks like validator connectivity score (according to script in honey-badger-testing it is), not a bonus score:
https://github.com/DMDcoin/honey-badger-testing/blob/29edcf58ce950acb1f2b1760efd98b7a0422a85f/src/contracts/printContractDetails.ts#L95-L98

Connectivity score is 0 by default and only increase if validator was reported for missing connectivity.

Bonus score minimum value is 1 by design, reference:

/// @dev Get current validator score.
/// @param mining Validator mining address.
/// @return value current validator score.
function getValidatorScore(address mining) public view returns (uint256) {
// will return current validator score or MIN_SCORE if score has not been recorded before.
return Math.max(_validatorScore[mining], MIN_SCORE);
}

@SurfingNerd
Copy link
Collaborator Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants