bootstrap fixes
This commit is contained in:
parent
b22bcf71bb
commit
543156f4dd
|
|
@ -77,11 +77,9 @@ async fn sync_incoming_peer_before_operational(
|
|||
|
||||
if local_genesis_exists && remote_height < local_height {
|
||||
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!(
|
||||
"incoming peer is behind local chain: local_height={local_height} remote_height={remote_height}"
|
||||
));
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
if !local_genesis_exists || remote_height > local_height + 10 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue