Bitcoin Core  22.99.0
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BitcoinCore Class Reference

Class encapsulating Bitcoin Core startup and shutdown. More...

#include <bitcoin.h>

Inheritance diagram for BitcoinCore:
[legend]
Collaboration diagram for BitcoinCore:
[legend]

Public Slots

void initialize ()
 
void shutdown ()
 

Signals

void initializeResult (bool success, interfaces::BlockAndHeaderTipInfo tip_info)
 
void shutdownResult ()
 
void runawayException (const QString &message)
 

Public Member Functions

 BitcoinCore (interfaces::Node &node)
 

Private Member Functions

void handleRunawayException (const std::exception *e)
 Pass fatal exception message to UI thread. More...
 

Private Attributes

interfaces::Nodem_node
 

Detailed Description

Class encapsulating Bitcoin Core startup and shutdown.

Allows running startup and shutdown in a different thread from the UI thread.

Definition at line 32 of file bitcoin.h.

Constructor & Destructor Documentation

◆ BitcoinCore()

BitcoinCore::BitcoinCore ( interfaces::Node node)
explicit

Definition at line 158 of file bitcoin.cpp.

Member Function Documentation

◆ handleRunawayException()

void BitcoinCore::handleRunawayException ( const std::exception *  e)
private

Pass fatal exception message to UI thread.

Definition at line 163 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize

void BitcoinCore::initialize ( )
slot

Definition at line 169 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeResult

void BitcoinCore::initializeResult ( bool  success,
interfaces::BlockAndHeaderTipInfo  tip_info 
)
signal
Here is the caller graph for this function:

◆ runawayException

void BitcoinCore::runawayException ( const QString &  message)
signal
Here is the caller graph for this function:

◆ shutdown

void BitcoinCore::shutdown ( )
slot

Definition at line 185 of file bitcoin.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ shutdownResult

void BitcoinCore::shutdownResult ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ m_node

interfaces::Node& BitcoinCore::m_node
private

Definition at line 51 of file bitcoin.h.


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