diff options
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/mining.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/mining.h b/src/interfaces/mining.h index 603d8475d3..8ed273252b 100644 --- a/src/interfaces/mining.h +++ b/src/interfaces/mining.h @@ -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. |