2023-05-10 22:29:17 +02:00
|
|
|
// Copyright (c) 2023 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
|
|
|
|
#define BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
|
|
|
|
|
|
|
|
#include <kernel/notifications_interface.h>
|
|
|
|
|
2023-05-10 22:35:49 +02:00
|
|
|
#include <cstdint>
|
2023-05-10 22:36:04 +02:00
|
|
|
#include <string>
|
2023-05-10 22:35:49 +02:00
|
|
|
|
2023-05-10 22:29:17 +02:00
|
|
|
class CBlockIndex;
|
|
|
|
enum class SynchronizationState;
|
2023-05-10 22:36:04 +02:00
|
|
|
struct bilingual_str;
|
2023-05-10 22:29:17 +02:00
|
|
|
|
|
|
|
namespace node {
|
|
|
|
class KernelNotifications : public kernel::Notifications
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void blockTip(SynchronizationState state, CBlockIndex& index) override;
|
2023-05-10 22:35:49 +02:00
|
|
|
|
|
|
|
void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) override;
|
2023-05-10 22:36:04 +02:00
|
|
|
|
|
|
|
void progress(const bilingual_str& title, int progress_percent, bool resume_possible) override;
|
2023-05-08 14:49:37 +02:00
|
|
|
|
|
|
|
void warning(const bilingual_str& warning) override;
|
2023-05-10 22:29:17 +02:00
|
|
|
};
|
|
|
|
} // namespace node
|
|
|
|
|
|
|
|
#endif // BITCOIN_NODE_KERNEL_NOTIFICATIONS_H
|