mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-09 20:23:35 +01:00
Add BlockAndHeaderTipInfo to the node interface/appInit
This commit is contained in:
@@ -39,6 +39,16 @@ class Handler;
|
||||
class Wallet;
|
||||
struct BlockTip;
|
||||
|
||||
//! Block and header tip information
|
||||
struct BlockAndHeaderTipInfo
|
||||
{
|
||||
int block_height;
|
||||
int64_t block_time;
|
||||
int header_height;
|
||||
int64_t header_time;
|
||||
double verification_progress;
|
||||
};
|
||||
|
||||
//! Top-level interface for a bitcoin node (bitcoind process).
|
||||
class Node
|
||||
{
|
||||
@@ -96,7 +106,7 @@ public:
|
||||
virtual bool baseInitialize() = 0;
|
||||
|
||||
//! Start node.
|
||||
virtual bool appInitMain() = 0;
|
||||
virtual bool appInitMain(interfaces::BlockAndHeaderTipInfo* tip_info = nullptr) = 0;
|
||||
|
||||
//! Stop node.
|
||||
virtual void appShutdown() = 0;
|
||||
|
||||
Reference in New Issue
Block a user