-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug] run start_cli_testnet.sh fails on WrongLengthError #358
Comments
The cause of this is probably the change in |
* This diff modifies the following behavior: - `config::KeyPairs` now contains `nextgen_crypto:ed5519::Ed25519PrivateKey` instances where `signing::PrivateKey` was used, - `NodeConfig`, `BaseConfig` et al, only allow Clone under conditional compilations, - The n copies of private key material per node (where n = # of peers) in `KeyPairs::load_config` are eliminated using the [mem::replace](https://github.com/rust-unofficial/patterns/blob/master/idioms/mem-replace.md) pattern - The 2 copies of private key material per node (in `chained_bft_consensus_provider::initialize_setup` and `main_node::setup_network`) are eliminated in the same way * Why this is better: - pursues the conversion to nextgen_crypto API - the number of memory copies of private key material is brought down to one (the minimum) * Why this is worse: - the second access to the same owned private key from a `&mut NodeConfig` will panic * Future (planned) work - convert `LedgerInfo`, `QuorumCert` to use the nextgen crypto API - use of X25519 keys should equally be converted to the nextgen crypto API, once the scheme is made available there
We recommend that you work on the |
Hi @fbandersnatch I ended up getting same issue. while setup, we followed step to checkout testnet branch. |
Good call @kanthgithub. We should update it. |
Fix in #352 afaict. |
Closing this. The fix is in master and documentation is updated. |
🐛 Bug
Running
/scripts/cli/start_cli_testnet.sh
fails withWrongLengthError
due to parsing failure of thenetwork_signing_pubkey
in the trusted_peers.config.toml.To reproduce
** Code snippet to reproduce **
** Stack trace/error message **
Expected Behavior
The script should work and display a CLI console.
System information
Please complete the following information:
master, commit a72e606
rustc 1.38.0-nightly (6e310f2ab 2019-07-07)
macOS Mojave (10.14.6)
The text was updated successfully, but these errors were encountered: