rpc: getblocktemplate getTipHash() via Miner interface

This commit is contained in:
Sjors Provoost committed 2024-06-18 18:47:51 +02:00
1 parent d8a3496b5a
commit 404b01c436
3 files changed
+18 -7

No files matched your search

+5
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.