rpc: getblocktemplate getTipHash() via Miner interface

This commit is contained in:
Sjors Provoost
2024-05-30 15:55:02 +02:00
parent d8a3496b5a
commit 404b01c436
3 changed files with 18 additions and 7 deletions

View File

@@ -5,6 +5,8 @@
#ifndef BITCOIN_INTERFACES_MINING_H
#define BITCOIN_INTERFACES_MINING_H
#include <uint256.h>
namespace node {
struct NodeContext;
} // namespace node
@@ -25,6 +27,9 @@ public:
//! If this chain is exclusively used for testing
virtual bool isTestChain() = 0;
//! Returns the hash for the tip of this chain, 0 if none
virtual uint256 getTipHash() = 0;
/**
* Check a block is completely valid from start to finish.
* Only works on top of our current best block.