-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A chain with single validator could be increased even I set an INCORRECT bls_pub_key
.
#1509
Comments
bls_pub_key
.bls_pub_key
.
bls_pub_key
.bls_pub_key
.
bls_pub_key
.bls_pub_key
.
@driftluo can you confirm that if this is a bug? |
I personally think the problem lies here. If the proposal is made by oneself, proof verification is not performed: axon/core/consensus/src/engine.rs Lines 207 to 215 in 527ccdf
axon/core/consensus/src/engine.rs Lines 570 to 580 in 527ccdf
|
I suggest check the bls key is correct when init. |
For the single Axon node mode@driftluo has explained: If the proposal is made by oneself, proof verification is not performed. This mode could be ignored because in a paractical chain, the single node mode won't be used. For the multi Axon nodes modeIf one of the |
But during the init step, the program doesn't know if the bls_privkey_file in config.toml is associated with a validator, so it can't just check if the bls_pub_key is the configured bls_privkey's pub key. |
Description
I have made a mistake:
bls_pub_key
inparams.verifier_list
to initialize a chain, but thebls_privkey_file
is correct.So, the
bls_privkey_file
didn't match any keys in metadata.The chain should be an observer, its height shouldn't be increased.
But, in fact, the chain is running as a normal chain.
The only issue is that no observers are able to connect to this node.
Reproduce
I only changes the file
devtools/chain/specs/single_node/chain-spec.toml
:axon/devtools/chain/specs/single_node/chain-spec.toml
Line 80 in 9a0bdbd
with the following patch:
And the chain works well in CI.
The text was updated successfully, but these errors were encountered: