linera-io / linera-protocol

Main repository for the Linera protocol
Apache License 2.0
112 stars 94 forks source link

Give validators weight 100 by default. #2206

Closed afck closed 1 day ago

afck commented 4 days ago

Motivation

In CLI commands, if no weights are specified, each new validator gets weight 100. This was done so that it's easy to later add e.g. a "half-weight" validator.

However, at genesis, validators are still assigned weight 1.

Proposal

Assign weight 100 to each genesis validator, too.

Test Plan

Any regressions should be caught by existing tests.

Links