refactor: Clean up pong replies

This commit is contained in:
Bart
2026-07-16 16:25:00 -04:00
committed by Ayaz Salikhov
parent 4a9ee54c88
commit 5ab95748d4
2 changed files with 10 additions and 6 deletions

View File

@@ -293,14 +293,15 @@ message TMLedgerData {
}
message TMPing {
// Previously used - don't reuse.
reserved 3, 4;
enum pingType {
ptPING = 0; // we want a reply
ptPONG = 1; // this is a reply
}
required pingType type = 1;
optional uint32 seq = 2; // detect stale replies, ensure other side is reading
optional uint64 pingTime = 3; // know when we think we sent the ping
optional uint64 netTime = 4;
optional uint32 seq = 2; // detect stale replies, ensure other side is reading
}
message TMSquelch {