-
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
Stratum v2 Template Provider common functionality #49
base: 2024/06/sv2_connection
Are you sure you want to change the base?
Conversation
3cf779b
to
b549fd6
Compare
6894e23
to
fc6ac1e
Compare
Updated to the latest interface changes proposed in bitcoin#30409 and #53. |
b549fd6
to
22d033c
Compare
491755c
to
16d2381
Compare
4f957ee
to
b69544c
Compare
ca73422
to
4fa25e0
Compare
Rebased for CMake |
One test still seems brittle:
|
b69544c
to
1ca68d2
Compare
1f720ff
to
1912743
Compare
1ca68d2
to
b578e0a
Compare
598f08a
to
436dc4d
Compare
Moved |
436dc4d
to
46fa8f1
Compare
b578e0a
to
489c9fb
Compare
7db898e
to
765af74
Compare
e59ea4f
to
735e934
Compare
I got rid of the I also noticed that with |
735e934
to
c413ad7
Compare
Included changes from #72 which fixes a crash and the test run at normal speed again. |
c413ad7
to
9cac0b8
Compare
Oops, lost the |
9cac0b8
to
fd26e38
Compare
Included a fix for #74: https://github.com/Sjors/bitcoin/compare/9cac0b8d1e84aa86301fd1e7907aaeeaeb351600..fd26e38c2af8ce82a95971392e85d5d23d3fd828 Also updated the list of interface changes in the PR description. |
ce785e2
to
4eb05e2
Compare
fd26e38
to
a2882d8
Compare
4eb05e2
to
4ba3ba8
Compare
a2882d8
to
51fdf1d
Compare
4ba3ba8
to
a3a7a46
Compare
This change avoids ambiguity when no tip is connected and it is compared to uint256::ZERO.
To avoid future code changes from reintroducing the ambiguity fixed by the previous commit, mark m_tip_block private and Assume that it's not set to uint256::ZERO.
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.
The template provider will listen for a Job Declarator client. It can establish a connection and detect various protocol errors. Co-Authored-By: Christopher Coverdale <[email protected]> Co-Authored-By: Fi3
Co-authored-by: Christopher Coverdale <[email protected]>
Determine future_template only once
Co-authored-by: Vasil Dimov <[email protected]>
51fdf1d
to
91ea715
Compare
Moved from bitcoin#30475.
Based on:
And the following interface changes:
This contains all Template Provider functionality that can be used by both #68 and the IPC based sidecar alternative #48.