-
Notifications
You must be signed in to change notification settings - Fork 12
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
Da voter config for docker compose #513
Conversation
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.
👍
nodes/nomos-node/src/config.rs
Outdated
pub fn update_da(mut self, da_args: DaArgs) -> Result<Self> { | ||
let DaArgs { da_voter_key } = da_args; | ||
|
||
if let Some(private_key) = da_voter_key { | ||
let bytes = <[u8; 32]>::from_hex(private_key)?; | ||
self.da.da_protocol.voter = bytes; | ||
} |
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.
Thank you. I forgot to add this function here.
I think it might be clearer to not call this private key
, since we don't know yet what will be used for the voter
, as discussed in #498 (comment) (even though we'll anyway use the same private key as the consensus service for now).
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, that makes sense! Updated.
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.
Agree with #513 (comment), the rest is good
a116492
to
d151529
Compare
8eb3d08
to
52ce159
Compare
Just for FYI, github didn't let me merge, because for some reason commits were not signed. Even after updating the signing key, I had to sign every commit in this PR. Did it with this command:
|
* Readd docker build context * Configurable da protocol voter * Do not use private key naming for da voter
Configurable da voter and minor improvements to docker compose file.
A copy of this closed PR: #512