2021-01-30 14:18:37 +01:00
|
|
|
#[derive(Clone, PartialEq, Debug)]
|
|
|
|
|
pub enum Event {
|
|
|
|
|
MinerStarted,
|
2021-03-25 20:55:09 +01:00
|
|
|
MinerStopped { success: bool, full: bool },
|
2021-05-24 17:36:07 +02:00
|
|
|
MinerStats { thread: u32, speed: u64, max_diff: u32, target_diff: u32 },
|
2021-01-30 14:18:37 +01:00
|
|
|
KeyGeneratorStarted,
|
2021-04-06 11:21:31 +02:00
|
|
|
KeyGeneratorStopped,
|
2021-03-10 22:21:50 +01:00
|
|
|
KeyCreated { path: String, public: String, hash: String },
|
|
|
|
|
KeyLoaded { path: String, public: String, hash: String },
|
|
|
|
|
KeySaved { path: String, public: String, hash: String },
|
2021-01-30 14:18:37 +01:00
|
|
|
NewBlockReceived,
|
2021-03-16 18:16:31 +01:00
|
|
|
BlockchainChanged { index: u64 },
|
2021-01-30 14:18:37 +01:00
|
|
|
ActionStopMining,
|
2021-03-23 18:55:11 +01:00
|
|
|
ActionQuit,
|
2021-05-21 23:32:46 +02:00
|
|
|
NetworkStatus { blocks: u64, domains: i64, keys: i64, nodes: usize },
|
2021-02-28 22:17:03 +01:00
|
|
|
Syncing { have: u64, height: u64 },
|
|
|
|
|
SyncFinished,
|
2021-11-20 16:11:05 +01:00
|
|
|
Error { text: String }
|
2021-01-30 14:18:37 +01:00
|
|
|
}
|