Warp-only sync with warp-barrier [blocknumber] flag. (#8228)
* Warp-only sync with warp-after [blocknumber] flag. * Fix tests. * Fix configuration tests. * Rename to warp barrier.
This commit is contained in:
@@ -594,11 +594,11 @@ impl Host {
|
||||
};
|
||||
match TcpStream::connect(&address) {
|
||||
Ok(socket) => {
|
||||
trace!(target: "network", "Connecting to {:?}", address);
|
||||
trace!(target: "network", "{}: Connecting to {:?}", id, address);
|
||||
socket
|
||||
},
|
||||
Err(e) => {
|
||||
debug!(target: "network", "Can't connect to address {:?}: {:?}", address, e);
|
||||
debug!(target: "network", "{}: Can't connect to address {:?}: {:?}", id, address, e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -614,6 +614,7 @@ impl Host {
|
||||
let mut sessions = self.sessions.write();
|
||||
|
||||
let token = sessions.insert_with_opt(|token| {
|
||||
trace!(target: "network", "{}: Initiating session {:?}", token, id);
|
||||
match Session::new(io, socket, token, id, &nonce, &self.info.read()) {
|
||||
Ok(s) => Some(Arc::new(Mutex::new(s))),
|
||||
Err(e) => {
|
||||
|
||||
Reference in New Issue
Block a user