Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
12class CBlockIndex;
13enum class SynchronizationState;
14struct bilingual_str;
15
16namespace node {
18public:
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
Bilingual messages:
Definition translation.h:17
SynchronizationState
Current sync state passed to tip changed callbacks.
Definition validation.h:113