-
Notifications
You must be signed in to change notification settings - Fork 217
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
review & fix jormungandr configuration to enable block production in BFT mode #382
Conversation
@@ -22,19 +22,19 @@ blockchain_configuration: | |||
block0_consensus: bft | |||
|
|||
# Number of slots in each epoch | |||
slots_per_epoch: 2160 | |||
slots_per_epoch: 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to avoid too many blocks in the schedule which makes the logger panics otherwise 🤷♂️ ... And, it'll be fun to not use 2160 slots per epoch, I am sure of it.
|
||
# The number of blocks (*10) per epoch | ||
epoch_stability_depth: 10 | ||
|
||
# A list of Ed25519 Extended PublicKey that represents the | ||
# BFT leaders encoded as bech32. The order in the list matters. | ||
consensus_leader_ids: | ||
- ed25519e_pk1xznffwqdhw3drw9yk4t99vpajcc4epq5kp205um5gkkz625xt3mqn4z3mx | ||
- ed25519_pk1kgtwuwy0cf2edn6rl09gzhzx8sma09tqhxzcqrpaduaq7k5h0ceqe4qqpv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this was the main reason blocks weren't produce. The leader defined in the genesis file was not the one pointed by the node configuration...
@@ -21,7 +21,7 @@ spec = describe "cardano-wallet-launcher" $ do | |||
let jormungandrLauncher = Command | |||
"jormungandr" | |||
[ "--genesis-block", dir ++ "/block-0.bin" | |||
, "--config", dir ++ "/node.config" | |||
, "--config", dir ++ "/config.yaml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using .yaml
since this is actually a yaml file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮 Thanks @KtorZ!
lgtm - It produces blocks when I run it.
b4aa361
to
290a18e
Compare
Issue Number
#219
Overview
Comments
Not sure how the leader ids were generated in the genesis file but, it didn't match the public key of the signing key given as configuration. Now fixed and Jormungandr correctly produces block in BFT mode now.
Note that because the node is alone, it schedules a lot of blocks which result in quite a lot of messages (and eventually error messages from the logger which can't keep up). I've alerted the rust team and they're looking into it.