Commit 7dc4e3f
EchoBT
feat(consensus): Add stake-based governance with bootstrap period
Implements a sophisticated governance system for chain modifications:
- 50%+ stake threshold required for consensus after bootstrap
- Bootstrap period (block < 7,175,360) allows subnet owner to execute
actions without stake verification while validators join
- Owner hotkey: 5GziQCcRpN8NCJktX343brnfuVe3w6gUYieeStXPD1Dag2At
Security features:
- Proposal system with timeout (24h) and min voting period (1h)
- Double-voting prevention
- Rate limiting (max 10 proposals/day/validator)
- Signature verification on all votes
- BootstrapSyncPolicy for trusted sync during bootstrap
New modules:
- stake_governance.rs: Core governance engine
- governance_integration.rs: PBFT and metagraph integration
Also adds:
- RateLimited error type in core/error.rs
- sign_bytes() method in core/crypto.rs1 parent 11cfe4a commit 7dc4e3f
File tree
7 files changed
+2076
-0
lines changed- crates
- consensus
- src
- core/src
7 files changed
+2076
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments