kernel: Add headerTip method to notifications

This commit is part of the libbitcoinkernel project and seeks to remove
the ChainstateManager's and, more generally, the kernel library's
dependency on interface_ui with options methods in this and the following
few commits. By removing interface_ui from the kernel library, its
dependency on boost is reduced to just boost::multi_index.
This commit is contained in:
TheCharlatan
2023-05-10 22:35:49 +02:00
parent 447761c822
commit 84d71457e7
5 changed files with 19 additions and 2 deletions

View File

@@ -5,6 +5,8 @@
#ifndef BITCOIN_KERNEL_NOTIFICATIONS_INTERFACE_H
#define BITCOIN_KERNEL_NOTIFICATIONS_INTERFACE_H
#include <cstdint>
class CBlockIndex;
enum class SynchronizationState;
@@ -20,6 +22,7 @@ public:
virtual ~Notifications(){};
virtual void blockTip(SynchronizationState state, CBlockIndex& index) {}
virtual void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) {}
};
} // namespace kernel