Add getCoinbaseMerklePath() to Mining interface

This commit is contained in:
Sjors Provoost
2024-07-12 16:08:38 +02:00
parent 63d6ad7c89
commit 47b4875ef0
3 changed files with 14 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ public:
virtual CTransactionRef getCoinbaseTx() = 0;
virtual std::vector<unsigned char> getCoinbaseCommitment() = 0;
virtual int getWitnessCommitmentIndex() = 0;
/**
* Compute merkle path to the coinbase transaction
*
* @return merkle path ordered from the deepest
*/
virtual std::vector<uint256> getCoinbaseMerklePath() = 0;
};
//! Interface giving clients (RPC, Stratum v2 Template Provider in the future)