diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-01-13 07:57:54 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-07-18 13:39:55 -0500 |
commit | 33b4d48cfcdf145f49cb2283ac3e2936a4e23fff (patch) | |
tree | 482ca2545df1e67a06a7d027cc2275f89ae0cb75 /src/interfaces | |
parent | a0b5b4ae5a24536d333cbce2ea584f2d935c651f (diff) | |
download | bitcoin-33b4d48cfcdf145f49cb2283ac3e2936a4e23fff.tar.xz |
indexes, refactor: Pass Chain interface instead of CChainState class to indexes
Passing abstract Chain interface will let indexes run in separate
processes.
This commit does not change behavior in any way.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/chain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index 6396d0d359..4b192c29cc 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -304,6 +304,10 @@ public: //! Return true if an assumed-valid chain is in use. virtual bool hasAssumedValidChain() = 0; + + //! Get internal node context. Useful for testing, but not + //! accessible across processes. + virtual node::NodeContext* context() { return nullptr; } }; //! Interface to let node manage chain clients (wallets, or maybe tools for |