ethereum / cbc-casper

GNU Affero General Public License v3.0
229 stars 44 forks source link

Add ability to specify initial bets #161

Closed naterush closed 6 years ago

naterush commented 6 years ago

Issue

Currently, for some protocols, each validator is randomly assigned an initial starting estimate. For example, in Binary consensus, each validator is randomly assigned an initial estimate. Ideally, we would be able to control these initial estimates.

Proposed Implementation

Protocols can store a dictionary from validator name => initial estimate, in the protocols that it makes sense. Some function can populate this dictionary with initial estimates.

If some initial messages are specific, the validators should use these in their first bet. Otherwise, they can choose a random estimate, as they do currently.

djrtwo commented 6 years ago

Seems reasonable.

naterush commented 6 years ago

Addressed https://github.com/ethereum/cbc-casper/issues/175