-
Notifications
You must be signed in to change notification settings - Fork 236
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
feat: prepend the binary version to BlockAssemblerConfig message #2817
feat: prepend the binary version to BlockAssemblerConfig message #2817
Conversation
This comment has been minimized.
This comment has been minimized.
I don't want the user to set this parameter during init, if they want to remove the message_prefix, they need to edit ckb.toml and set it to "0x". How about adding a commented out line in the generated ckb.toml file?
|
3c96cd5
to
6bd65a0
Compare
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.
Looks good.
Only one trivial issue: should we add a separator?
If a user set the message
as follow:
message = "Mined by Xxx."
The real message will be "ckb 0.44.0-pre (337b520 2021-07-12)Mined by Xxx."
.
let message = config.message_prefix.as_ref().map_or_else(
|| config.message.as_bytes().pack(),
|prefix| {
[prefix.as_bytes(), config.message.as_bytes()]
.concat()
.pack()
},
);
So maybe he/she should set the message as follow to make the message more readable with default prefix:
message = "; Mined by Xxx."
The name
|
What about this
|
I like this. |
337b520
to
0683c7d
Compare
@keroro520 @zhangsoledad changed the configuration field name to |
bors r=keroro520,zhangsoledad,driftluo,yangby-cryptape |
Build succeeded: |
No description provided.