Added success notifications from miner.

This commit is contained in:
Revertron
2021-03-25 20:55:09 +01:00
parent f21f299fb5
commit fc90706213
7 changed files with 106 additions and 45 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ use crate::{Bytes, Keystore};
#[derive(Clone, PartialEq, Debug)]
pub enum Event {
MinerStarted,
MinerStopped,
MinerStopped { success: bool, full: bool },
KeyGeneratorStarted,
KeyGeneratorStopped,
KeyGeneratorStopped { success: bool },
KeyCreated { path: String, public: String, hash: String },
KeyLoaded { path: String, public: String, hash: String },
KeySaved { path: String, public: String, hash: String },