mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 05:20:01 +01:00
Add submitSolution to BlockTemplate interface
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user