aboutsummaryrefslogtreecommitdiff
path: root/src/node/interfaces.cpp
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2024-07-12 16:08:38 +0200
committerSjors Provoost <sjors@sprovoost.nl>2024-09-26 10:04:45 +0200
commit47b4875ef050c4a41bd04398021af8d605415cab (patch)
tree5893c025265424233eda9de5d52c82d60b587662 /src/node/interfaces.cpp
parent63d6ad7c89cd682f6e779968c4861ea085058356 (diff)
downloadbitcoin-47b4875ef050c4a41bd04398021af8d605415cab.tar.xz
Add getCoinbaseMerklePath() to Mining interface
Diffstat (limited to 'src/node/interfaces.cpp')
-rw-r--r--src/node/interfaces.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 1fedcd6cfa..8ed06bd00d 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -8,6 +8,7 @@
#include <chain.h>
#include <chainparams.h>
#include <common/args.h>
+#include <consensus/merkle.h>
#include <consensus/validation.h>
#include <deploymentstatus.h>
#include <external_signer.h>
@@ -910,6 +911,11 @@ public:
return GetWitnessCommitmentIndex(m_block_template->block);
}
+ std::vector<uint256> getCoinbaseMerklePath() override
+ {
+ return BlockMerkleBranch(m_block_template->block);
+ }
+
const std::unique_ptr<CBlockTemplate> m_block_template;
};