Skip to content

switch to rusty-kaspa protos#6

Open
Leon1777 wants to merge 2 commits intokaspanet:mainfrom
Leon1777:rkprotos
Open

switch to rusty-kaspa protos#6
Leon1777 wants to merge 2 commits intokaspanet:mainfrom
Leon1777:rkprotos

Conversation

@Leon1777
Copy link
Copy Markdown

@Leon1777 Leon1777 commented Feb 10, 2026

This migration makes it easier to keep grpc-protos in sync with rusty-kaspa going forward.

I used the latest protos from the tn12 branch here: https://github.com/kaspanet/rusty-kaspa/tree/tn12/rpc/grpc/core/proto

Comment thread src/client.rs
Payload::GetInfoResponse(info) => info!("Kaspad version: {}", info.server_version),
Payload::NotifyNewBlockTemplateResponse(res) => match res.error {
ResponsePayload::GetInfoResponse(info) => {
info!("Kaspad: {} Synced: {}", info.server_version, info.is_synced)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now also reports info.is_synced which can be used to pause the miner if the node becomes out of sync, afaik currently the miner will just report a warning but not pause

Comment thread src/pow.rs
fn test_serialize_header() {
let header = RpcBlockHeader {
version: 24565,
hash: "0000000000000000000000000000000000000000000000000000000000000000".into(),
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about the correctness here, it's ok for the test to pass and the compiler not to complain

Comment thread README.md
--mine-when-not-synced Mine even when kaspad says it is not synced, only useful when passing `--allow-submit-
block-when-not-synced` to kaspad [default: false]
--mine-when-not-synced Mine even when kaspad says it is not synced, only useful when passing
`--enable-unsynced-mining` to kaspad [default: false]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--allow-block-when-not-synced was the correct parameter for go-kaspad, it's changed in rk to --enable-unsynced-mining

@IzioDev
Copy link
Copy Markdown
Collaborator

IzioDev commented Feb 12, 2026

Hello, could you please add a quick description of the change and the motivations?
Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants