Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | List of all members
interfaces::ChainClient Class Referenceabstract

Interface to let node manage chain clients (wallets, or maybe tools for monitoring and analysis in the future). More...

#include <chain.h>

Inheritance diagram for interfaces::ChainClient:
[legend]

Public Member Functions

virtual ~ChainClient ()=default
 
virtual void registerRpcs ()=0
 Register rpcs. More...
 
virtual bool verify ()=0
 Check for errors before loading. More...
 
virtual bool load ()=0
 Load saved state. More...
 
virtual void start (CScheduler &scheduler)=0
 Start client execution and provide a scheduler. More...
 
virtual void flush ()=0
 Save state to disk. More...
 
virtual void stop ()=0
 Shut down client. More...
 
virtual void setMockTime (int64_t time)=0
 Set mock time. More...
 
virtual void schedulerMockForward (std::chrono::seconds delta_seconds)=0
 Mock the scheduler to fast forward in time. More...
 

Detailed Description

Interface to let node manage chain clients (wallets, or maybe tools for monitoring and analysis in the future).

Definition at line 390 of file chain.h.

Constructor & Destructor Documentation

◆ ~ChainClient()

virtual interfaces::ChainClient::~ChainClient ( )
virtualdefault

Member Function Documentation

◆ flush()

virtual void interfaces::ChainClient::flush ( )
pure virtual

Save state to disk.

◆ load()

virtual bool interfaces::ChainClient::load ( )
pure virtual

Load saved state.

◆ registerRpcs()

virtual void interfaces::ChainClient::registerRpcs ( )
pure virtual

Register rpcs.

◆ schedulerMockForward()

virtual void interfaces::ChainClient::schedulerMockForward ( std::chrono::seconds  delta_seconds)
pure virtual

Mock the scheduler to fast forward in time.

◆ setMockTime()

virtual void interfaces::ChainClient::setMockTime ( int64_t  time)
pure virtual

Set mock time.

◆ start()

virtual void interfaces::ChainClient::start ( CScheduler scheduler)
pure virtual

Start client execution and provide a scheduler.

◆ stop()

virtual void interfaces::ChainClient::stop ( )
pure virtual

Shut down client.

◆ verify()

virtual bool interfaces::ChainClient::verify ( )
pure virtual

Check for errors before loading.


The documentation for this class was generated from the following file: