Implemented presentation and editing for domains.

This commit is contained in:
Revertron
2021-04-15 12:21:41 +02:00
parent da15a02e11
commit 9b093a8172
6 changed files with 139 additions and 2 deletions
+7
View File
@@ -129,6 +129,7 @@ fn main() {
create_genesis_if_needed(&context, &miner);
if no_gui {
print_my_domains(&context);
let sleep = Duration::from_millis(1000);
loop {
thread::sleep(sleep);
@@ -145,6 +146,12 @@ fn main() {
}
}
fn print_my_domains(context: &Arc<Mutex<Context>>) {
let context = context.lock().unwrap();
let domains = context.chain.get_my_domains(&context.keystore);
debug!("Domains: {:?}", &domains);
}
fn create_genesis_if_needed(context: &Arc<Mutex<Context>>, miner: &Arc<Mutex<Miner>>) {
// If there is no origin in settings and no blockchain in DB, generate genesis block
let context = context.lock().unwrap();