AuxPoW merge-mining RPCs: createauxblock / submitauxblock#103
Open
Boblepointu wants to merge 28 commits into
Open
AuxPoW merge-mining RPCs: createauxblock / submitauxblock#103Boblepointu wants to merge 28 commits into
Boblepointu wants to merge 28 commits into
Conversation
Add stratum protocol, config, worker, job, submit, stats and server modules to the server library, and wire the stratum unit test suite.
3 tasks
- Remove unrelated copyright header from src/rpc/mining.cpp - Replace flaky time.sleep(1) with wait_until on debug log in stratum test - Move stratum config log from AppInitServers to InitStratumServer call site - Add AssertLockHeld(m_cs) in HandleSubmit for thread-safety sanity - Add WIN32 compat for evthread (match httpserver.cpp pattern) - Replace POSIX socket headers with compat.h for cross-platform builds Made-with: Cursor
- Introduced a new HTML file for visualizing the dependency graph of pull requests. - Implemented a responsive design with SVG elements to represent PR statuses (open, ready, queued, draft). - Added a legend to explain the color coding of PR states. This visualization aids in understanding the current state of pull requests in the project.
Wire stratumaux.cpp into the server library and stratumaux_tests.cpp into the stratum unit test suite. Made-with: Cursor
3d75965 to
900a6ae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
createauxblockandsubmitauxblockJSON-RPC methods that enable external miners to request and submit Auxiliary Proof-of-Work blocks, the standard interface for Dogecoin merge-mining.Depends on PR #102 (Stratum v1 core).
What's included
stratumaux.{h,cpp}CreateWork/GetWork/RemoveWork, commitment buildingrpc/mining.cppcreateauxblock(coinbase_addr)→ returns hash + target;submitauxblock(hash, auxpow_hex)→ validates and submitsstratumaux_tests.cppstratum_auxpow.py,stratum_mining.pyCMakeLists.txtUsage
Test plan
ninja check-stratum— stratumaux test suite passestest/functional/stratum_auxpow.py— e2e create + submit cycletest/functional/stratum_mining.py— share submission flow