mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
kernel: Add progress 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:
parent
84d71457e7
commit
4452707ede
8 changed files with 37 additions and 12 deletions
|
|
@ -6,9 +6,11 @@
|
|||
#define BITCOIN_KERNEL_NOTIFICATIONS_INTERFACE_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
class CBlockIndex;
|
||||
enum class SynchronizationState;
|
||||
struct bilingual_str;
|
||||
|
||||
namespace kernel {
|
||||
|
||||
|
|
@ -23,6 +25,7 @@ public:
|
|||
|
||||
virtual void blockTip(SynchronizationState state, CBlockIndex& index) {}
|
||||
virtual void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) {}
|
||||
virtual void progress(const bilingual_str& title, int progress_percent, bool resume_possible) {}
|
||||
};
|
||||
} // namespace kernel
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue