mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Ledger reply error support.
This commit is contained in:
@@ -245,15 +245,20 @@ message TMGetLedger {
|
|||||||
optional uint32 requestCookie = 6;
|
optional uint32 requestCookie = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum TMReplyError {
|
||||||
|
reNO_LEDGER = 1; // We don't have the ledger you are asking about
|
||||||
|
reNO_NODE = 2; // We don't have any of the nodes you are asking for
|
||||||
|
}
|
||||||
|
|
||||||
message TMLedgerData {
|
message TMLedgerData {
|
||||||
required bytes ledgerHash = 1;
|
required bytes ledgerHash = 1;
|
||||||
required uint32 ledgerSeq = 2;
|
required uint32 ledgerSeq = 2;
|
||||||
required TMLedgerInfoType type = 3;
|
required TMLedgerInfoType type = 3;
|
||||||
repeated TMLedgerNode nodes = 4;
|
repeated TMLedgerNode nodes = 4;
|
||||||
optional uint32 requestCookie = 5;
|
optional uint32 requestCookie = 5;
|
||||||
|
optional TMReplyError error = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
message TMPing {
|
message TMPing {
|
||||||
enum pingType {
|
enum pingType {
|
||||||
PING = 0; // we want a reply
|
PING = 0; // we want a reply
|
||||||
|
|||||||
Reference in New Issue
Block a user