Drop TransactionMerklePath default position arg

This commit is contained in:
Sjors Provoost committed 2024-12-17 10:12:31 +07:00
1 parent 39d3b538e6
commit 2e81791d90
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -28,10 +28,10 @@ uint256 BlockWitnessMerkleRoot(const CBlock& block, bool* mutated = nullptr);
* Compute merkle path to the specified transaction
*
* @param[in] block the block
* @param[in] position transaction for which to calculate the merkle path, defaults to coinbase
* @param[in] position transaction for which to calculate the merkle path (0 is the coinbase)
*
* @return merkle path ordered from the deepest
*/
std::vector<uint256> TransactionMerklePath(const CBlock& block, uint32_t position = 0);
std::vector<uint256> TransactionMerklePath(const CBlock& block, uint32_t position);
#endif // BITCOIN_CONSENSUS_MERKLE_H
+1 -1
View File
@@ -913,7 +913,7 @@ public:
std::vector<uint256> getCoinbaseMerklePath() override
{
return TransactionMerklePath(m_block_template->block);
return TransactionMerklePath(m_block_template->block, 0);
}
bool submitSolution(uint32_t version, uint32_t timestamp, uint32_t nonce, CMutableTransaction coinbase) override