Add submitSolution to BlockTemplate interface

This commit is contained in:
Sjors Provoost
2024-07-15 15:31:35 +02:00
parent 47b4875ef0
commit 525e9dcba0
3 changed files with 35 additions and 2 deletions

View File

@@ -49,6 +49,13 @@ public:
* @return merkle path ordered from the deepest
*/
virtual std::vector<uint256> getCoinbaseMerklePath() = 0;
/**
* Construct and broadcast the block.
*
* @returns if the block was processed, independent of block validity
*/
virtual bool submitSolution(uint32_t version, uint32_t timestamp, uint32_t nonce, CMutableTransaction coinbase) = 0;
};
//! Interface giving clients (RPC, Stratum v2 Template Provider in the future)