2021-03-06 21:28:06 +01:00
|
|
|
use crate::Bytes;
|
|
|
|
|
|
2021-01-30 14:18:37 +01:00
|
|
|
#[derive(Clone, PartialEq, Debug)]
|
|
|
|
|
pub enum Event {
|
|
|
|
|
MinerStarted,
|
|
|
|
|
MinerStopped,
|
|
|
|
|
KeyGeneratorStarted,
|
|
|
|
|
KeyGeneratorStopped,
|
2021-02-27 18:57:15 +01:00
|
|
|
KeyCreated { path: String, public: String },
|
|
|
|
|
KeyLoaded { path: String, public: String },
|
|
|
|
|
KeySaved { path: String, public: String },
|
2021-01-30 14:18:37 +01:00
|
|
|
NewBlockReceived,
|
|
|
|
|
BlockchainChanged,
|
|
|
|
|
ActionStopMining,
|
2021-03-06 21:28:06 +01:00
|
|
|
ActionMineLocker { index: u64, hash: Bytes },
|
2021-02-28 22:17:03 +01:00
|
|
|
NetworkStatus { nodes: usize, blocks: u64 },
|
|
|
|
|
Syncing { have: u64, height: u64 },
|
|
|
|
|
SyncFinished,
|
2021-01-30 14:18:37 +01:00
|
|
|
}
|