File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,10 @@ class NodeImpl : public Node
80
80
return AppInitBasicSetup () && AppInitParameterInteraction () && AppInitSanityChecks () &&
81
81
AppInitLockDataDirectory ();
82
82
}
83
- bool appInitMain () override
83
+ bool appInitMain (interfaces::BlockAndHeaderTipInfo* tip_info ) override
84
84
{
85
85
m_context->chain = MakeChain (*m_context);
86
- return AppInitMain (m_context_ref, *m_context);
86
+ return AppInitMain (m_context_ref, *m_context, tip_info );
87
87
}
88
88
void appShutdown () override
89
89
{
Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ class Handler;
39
39
class Wallet ;
40
40
struct BlockTip ;
41
41
42
+ // ! Block and header tip information
43
+ struct BlockAndHeaderTipInfo
44
+ {
45
+ int block_height;
46
+ int64_t block_time;
47
+ int header_height;
48
+ int64_t header_time;
49
+ double verification_progress;
50
+ };
51
+
42
52
// ! Top-level interface for a bitcoin node (bitcoind process).
43
53
class Node
44
54
{
@@ -96,7 +106,7 @@ class Node
96
106
virtual bool baseInitialize () = 0;
97
107
98
108
// ! Start node.
99
- virtual bool appInitMain () = 0;
109
+ virtual bool appInitMain (interfaces::BlockAndHeaderTipInfo* tip_info = nullptr ) = 0;
100
110
101
111
// ! Stop node.
102
112
virtual void appShutdown () = 0;
You can’t perform that action at this time.
0 commit comments