Skip to content

Commit 2e81791

Browse files
committed
Drop TransactionMerklePath default position arg
1 parent 39d3b53 commit 2e81791

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/consensus/merkle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ uint256 BlockWitnessMerkleRoot(const CBlock& block, bool* mutated = nullptr);
2828
* Compute merkle path to the specified transaction
2929
*
3030
* @param[in] block the block
31-
* @param[in] position transaction for which to calculate the merkle path, defaults to coinbase
31+
* @param[in] position transaction for which to calculate the merkle path (0 is the coinbase)
3232
*
3333
* @return merkle path ordered from the deepest
3434
*/
35-
std::vector<uint256> TransactionMerklePath(const CBlock& block, uint32_t position = 0);
35+
std::vector<uint256> TransactionMerklePath(const CBlock& block, uint32_t position);
3636

3737
#endif // BITCOIN_CONSENSUS_MERKLE_H

src/node/interfaces.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ class BlockTemplateImpl : public BlockTemplate
913913

914914
std::vector<uint256> getCoinbaseMerklePath() override
915915
{
916-
return TransactionMerklePath(m_block_template->block);
916+
return TransactionMerklePath(m_block_template->block, 0);
917917
}
918918

919919
bool submitSolution(uint32_t version, uint32_t timestamp, uint32_t nonce, CMutableTransaction coinbase) override

0 commit comments

Comments
 (0)