/// total difficulty accumulated by the sender, used to check whether sync may be needed
pub total_difficulty: Difficulty,
/// height
pub height: u64,
No need to wait 10 seconds for the Ping/Pong messages to get the height info. The height info should be put into the first message which peers communicate, i.e., both the Hand and Shake message.
No need to wait 10 seconds for the
Ping/Pong
messages to get theheight
info. Theheight
info should be put into the first message which peers communicate, i.e., both theHand
andShake
message.