-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2008 from ElrondNetwork/peer-honesty-implementation
Peer honesty implementation
- Loading branch information
Showing
29 changed files
with
1,062 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
package spos | ||
|
||
//TODO consider moving these constants in config file | ||
|
||
// MaxThresholdPercent specifies the max allocated time percent for doing Job as a percentage of the total time of one round | ||
const MaxThresholdPercent = 95 | ||
|
||
// LeaderPeerHonestyIncreaseFactor specifies the factor with which the honesty of the leader should be increased | ||
// if it proposed a block or sent the final info, in its correct allocated slot/time-frame/round | ||
const LeaderPeerHonestyIncreaseFactor = 2.0 | ||
const LeaderPeerHonestyIncreaseFactor = 2 | ||
|
||
// ValidatorPeerHonestyIncreaseFactor specifies the factor with which the honesty of the validator should be increased | ||
// if it sent the signature, in its correct allocated slot/time-frame/round | ||
const ValidatorPeerHonestyIncreaseFactor = 1.0 | ||
const ValidatorPeerHonestyIncreaseFactor = 1 | ||
|
||
// LeaderPeerHonestyDecreaseFactor specifies the factor with which the honesty of the leader should be decreased | ||
// if it proposed a block or sent the final info, in an incorrect allocated slot/time-frame/round | ||
const LeaderPeerHonestyDecreaseFactor = -4.0 | ||
const LeaderPeerHonestyDecreaseFactor = -4 | ||
|
||
// ValidatorPeerHonestyDecreaseFactor specifies the factor with which the honesty of the validator should be decreased | ||
// if it sent the signature, in an incorrect allocated slot/time-frame/round | ||
const ValidatorPeerHonestyDecreaseFactor = -2.0 | ||
const ValidatorPeerHonestyDecreaseFactor = -2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.