Added second keypair for encryption of domain names.
Changed keys file format to include second pair of keys, it will be in TOML now. Made many adjustments to block and transaction structures. Changed block serialization to binary format for hashing/mining. Removed old build dependencies.
This commit is contained in:
+7
-2
@@ -137,8 +137,13 @@ impl Network {
|
||||
if !events.is_empty() {
|
||||
last_events_time = Instant::now();
|
||||
} else if last_events_time.elapsed().as_secs() > MAX_IDLE_SECONDS {
|
||||
warn!("Something is wrong with swarm connections, closing all.");
|
||||
peers.close_all_peers(poll.registry());
|
||||
if peers.get_peers_count() > 0 {
|
||||
warn!("Something is wrong with swarm connections, closing all.");
|
||||
peers.close_all_peers(poll.registry());
|
||||
continue;
|
||||
} else {
|
||||
thread::sleep(POLL_TIMEOUT.unwrap());
|
||||
}
|
||||
}
|
||||
|
||||
if ui_timer.elapsed().as_millis() > UI_REFRESH_DELAY_MS {
|
||||
|
||||
Reference in New Issue
Block a user