Comments (4)
That's because remove_offline_validators
is called in the session change hook and removes the validators who reported offline during the session that is ending. Even if we put the check of MinAuthorities
here, the offline validators that are not removed (because of this check) will not produce blocks and will have the same overall effect on the runtime.
The MinAuthorities
check is to not go below the threshold when manually removing healthy validators. Makes sense?
from substrate-validator-set.
Yes, it makes sense. Thank you
from substrate-validator-set.
Same problem when initializing genesis
Error:
Thread 'main' panicked at 'At least 2 validators should be initialized', /home/dev/.cargo/git/checkouts/substrate-validator-set-f1aaacaa79a24970/91375ae/src/lib.rs:172
Code:
assert!(validators.len() > 1, "At least 2 validators should be initialized");
https://github.com/gautamdhameja/substrate-validator-set/blob/master/src/lib.rs#L172
from substrate-validator-set.
My MR to the fix problem:
from substrate-validator-set.
Related Issues (20)
- Pallet not compatible with Substrate v3.0.0 HOT 1
- failed to select a version for `parity-scale-codec` HOT 3
- Compatibility with frontier HOT 2
- Frontier branch readme HOT 1
- Add a validator without the Account HOT 1
- Segmentation fault error HOT 4
- Cannot build on the frontier branch HOT 2
- Package not working with Substrate node template version 3 HOT 1
- Dev/Test node crashes at startup HOT 1
- Make sure we don't run out of validators when reporting offences. HOT 1
- Is it possible to integrate this pallet to a PoA network after genesis? HOT 2
- Version the pallet and name the branches the same way Substrate does HOT 1
- error[E0152]: duplicate lang item in crate `sp_io` (which `sp_application_crypto` depends on): `panic_impl`. HOT 4
- Automatically add again previously offended validators HOT 1
- Is it possible to start a substrate BABE blockchain with no Grandpa authorities and BABE validators? HOT 1
- Error Submitting session key for Charlie HOT 1
- need to add substrate-validator-set in production network by replacing the node-authorization pallet
- Facing issue in integration of this pallet HOT 1
- Adaptation to current frontier version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from substrate-validator-set.