Introduce Mining interface

Start out with a single method isTestChain() that's used by the getblocktemplate RPC.
This commit is contained in:
Sjors Provoost 2024-06-07 11:22:44 +02:00
parent 9c5cdf07f3
commit 8ecb681678
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009
14 changed files with 85 additions and 3 deletions

View file

@ -31,6 +31,7 @@
#include <init/common.h>
#include <interfaces/chain.h>
#include <interfaces/init.h>
#include <interfaces/mining.h>
#include <interfaces/node.h>
#include <kernel/context.h>
#include <key.h>
@ -1117,6 +1118,7 @@ bool AppInitLockDataDirectory()
bool AppInitInterfaces(NodeContext& node)
{
node.chain = node.init->makeChain();
node.mining = node.init->makeMining();
return true;
}