Bitcoin ABC  0.29.12
P2P Digital Currency
kernel_notifications.h
Go to the documentation of this file.
1 // Copyright (c) 2023 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
6 #define BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
7 
9 
10 #include <cstdint>
11 
12 class CBlockIndex;
13 enum class SynchronizationState;
14 struct bilingual_str;
15 
16 namespace node {
18 public:
19  void blockTip(SynchronizationState state, CBlockIndex &index) override;
20 
21  void headerTip(SynchronizationState state, int64_t height,
22  int64_t timestamp, bool presync) override;
23 
24  void progress(const bilingual_str &title, int progress_percent,
25  bool resume_possible) override;
26 
27  void warning(const std::string &warning) override;
28 };
29 } // namespace node
30 
31 #endif // BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: blockindex.h:25
A base class defining functions for notifying about certain kernel events.
void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) override
void progress(const bilingual_str &title, int progress_percent, bool resume_possible) override
void warning(const std::string &warning) override
void blockTip(SynchronizationState state, CBlockIndex &index) override
Definition: init.h:28
Bilingual messages:
Definition: translation.h:17
SynchronizationState
Current sync state passed to tip changed callbacks.
Definition: validation.h:113