Allow peers to report which transaction sets they have.

This commit is contained in:
JoelKatz
2012-05-15 04:12:45 -07:00
parent 96bdc953bf
commit 8d97f4438c

View File

@@ -22,6 +22,7 @@ enum MessageType {
mtPROPOSE_LEDGER= 33;
mtCLOSE_LEDGER= 35;
mtSTATUS_CHANGE= 36;
mtPEER_POSITION= 37;
// data replication and synchronization
mtGET_VALIDATIONS= 40;
@@ -98,6 +99,17 @@ message TMStatusChange {
}
message TMPeerPosition {
required uint32 ledgerSequence = 1;
required bytes pubKey = 2;
required uint32 sequence = 3;
required bytes transactionHash = 4;
required bytes signature = 5;
}
message TMHaveTransactionSet {
repeated bytes hashes = 1;
}
message TMProposeLedger {
required uint32 closingSeq = 1;
@@ -110,6 +122,8 @@ message TMProposeLedger {
required bytes signature = 8;
}
// Used to propose/validate during ledger close
message TMValidation {
required uint32 ledgerIndex = 1;