-
Notifications
You must be signed in to change notification settings - Fork 11
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
rpc: checkblock, add checkBlock() to Mining interface #75
Conversation
this can be useful for Sv2 JDS to check template validity cc @GitGab19 |
Co-authored-by: Greg Sanders <[email protected]>
146459b
to
02801f1
Compare
Simplified things by just calling |
972f752
to
022f4be
Compare
Also added |
ef49610
to
768e0db
Compare
I got rid of Would be nice if someone can demonstrate usage of the new RPC. E.g. the SRI Job Declarator Server could call it from here: https://github.com/stratum-mining/stratum/blob/main/roles/jd-server/src/lib/job_declarator/message_handler.rs#L204 |
Alternate calls between Chainman's ProcessNewBlock and submitSolution. The Chainman code path is used in production, so it's important to keep test coverage for it. Use createNewBlock via the interface instead of using the BlockAssembler directly. The latter is always called via the interface in production code.
768e0db
to
442f27a
Compare
Further cleanup. |
Moving to bitcoin#31564. |
RPC and IPC for checking weak blocks (reduced proof of work) and block templates (no proof of work) against all consensus rules.
Uses the first test commit from bitcoin#31283 to refactor
miner_tests.cpp
.