You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* move genesis log to debug
* disable p2p server if connect is active
* log inbound/outbound counts
* use local cache for pruning proof build for saving ram (the proof is held in memory)
* do the same (local cache) for pruning proof received via p2p
* prettify
* logs (and 2x cache capacity)
* fix rare edge case
* fix comment
* bump version to 0.17.1
Copy file name to clipboardExpand all lines: kaspad/src/daemon.rs
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -300,16 +300,16 @@ do you confirm? (answer y/n or pass --yes to the Kaspad command line to confirm
300
300
let headers_store = DbHeadersStore::new(consensus_db,CachePolicy::Empty,CachePolicy::Empty);
301
301
302
302
if headers_store.has(config.genesis.hash).unwrap(){
303
-
info!("Genesis is found in active consensus DB. No action needed.");
303
+
debug!("Genesis is found in active consensus DB. No action needed.");
304
304
}else{
305
-
let msg = "Genesis not found in active consensus DB. This happens when Testnet 11 is restarted and your database needs to be fully deleted. Do you confirm the delete? (y/n)";
305
+
let msg = "Genesis not found in active consensus DB. This happens when Testnets are restarted and your database needs to be fully deleted. Do you confirm the delete? (y/n)";
306
306
get_user_approval_or_exit(msg, args.yes);
307
307
308
308
is_db_reset_needed = true;
309
309
}
310
310
}
311
311
None => {
312
-
info!("Consensus not initialized yet. Skipping genesis check.");
312
+
debug!("Consensus not initialized yet. Skipping genesis check.");
313
313
}
314
314
}
315
315
}
@@ -454,8 +454,9 @@ do you confirm? (answer y/n or pass --yes to the Kaspad command line to confirm
454
454
let connect_peers = args.connect_peers.iter().map(|x| x.normalize(config.default_p2p_port())).collect::<Vec<_>>();
455
455
let add_peers = args.add_peers.iter().map(|x| x.normalize(config.default_p2p_port())).collect();
456
456
let p2p_server_addr = args.listen.unwrap_or(ContextualNetAddress::unspecified()).normalize(config.default_p2p_port());
457
-
// connect_peers means no DNS seeding and no outbound peers
457
+
// connect_peers means no DNS seeding and no outbound/inbound peers
458
458
let outbound_target = if connect_peers.is_empty(){ args.outbound_target}else{0};
459
+
let inbound_limit = if connect_peers.is_empty(){ args.inbound_limit}else{0};
459
460
let dns_seeders = if connect_peers.is_empty() && !args.disable_dns_seeding{ config.dns_seeders}else{&[]};
460
461
461
462
let grpc_server_addr = args.rpclisten.unwrap_or(ContextualNetAddress::loopback()).normalize(config.default_rpc_port());
@@ -556,7 +557,7 @@ do you confirm? (answer y/n or pass --yes to the Kaspad command line to confirm
0 commit comments