bootstrap fixes

This commit is contained in:
viraladmin 2026-07-08 10:43:33 -06:00
parent b22bcf71bb
commit 543156f4dd
1 changed files with 2 additions and 4 deletions

View File

@ -77,11 +77,9 @@ async fn sync_incoming_peer_before_operational(
if local_genesis_exists && remote_height < local_height { if local_genesis_exists && remote_height < local_height {
warn!( warn!(
"[startup] incoming peer is behind local chain and must reconnect through its own sync path: local_height={local_height} remote_height={remote_height}" "[startup] incoming peer is behind local chain; keeping connection passive until peer catches up: local_height={local_height} remote_height={remote_height}"
); );
return Err(format!( return Ok(false);
"incoming peer is behind local chain: local_height={local_height} remote_height={remote_height}"
));
} }
if !local_genesis_exists || remote_height > local_height + 10 { if !local_genesis_exists || remote_height > local_height + 10 {