serai/substrate
Luke Parker 1bff2a0447
Add signals pallet
Resolves #353

Implements code such that:

- 80% of validators (by stake) must be in favor of a signal for the network to
  be
- 80% of networks (by stake) must be in favor of a signal for it to be locked
  in
- After a signal has been locked in for two weeks, the network halts

The intention is to:

1) Not allow validators to unilaterally declare new consensus rules.

No method of declaring new consensus rules is provided by this pallet. Solely a
way to deprecate the current rules, with a signaled for successor. All nodes
must then individually decide whether or not to download and run a new node
which has new rules, and if so, which rules.

2) Not place blobs on chain.

Even if they'd be reproducible, it's just a lot of data to chuck on the
blockchain.
2023-10-21 20:06:55 -04:00
..
client clippy fixes 2023-10-19 06:30:58 -04:00
coins Add missing std feature flags to a couple Substrate dependencies 2023-10-20 17:53:07 -04:00
in-instructions Add signals pallet 2023-10-21 20:06:55 -04:00
node Coins pallet (#399) 2023-10-19 06:22:21 -04:00
primitives Coins pallet (#399) 2023-10-19 06:22:21 -04:00
runtime Add signals pallet 2023-10-21 20:06:55 -04:00
signals/pallet Add signals pallet 2023-10-21 20:06:55 -04:00
staking/pallet clippy fixes 2023-10-19 06:30:58 -04:00
validator-sets Add signals pallet 2023-10-21 20:06:55 -04:00