Skip to content

Commit

Permalink
fix: fix up timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Dec 20, 2024
1 parent 28eeb27 commit 552ca3f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions proto/xmtpv4/envelopes/envelopes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,20 @@ message SafetyFailure {
}

message UnsignedMisbehaviorReport {
// Client time or server time?
// Can we query by this time? Is it strictly increasing?
uint64 report_time_ns = 1;
uint64 reporter_time_ns = 1;
uint32 misbehaving_node_id = 2;
Misbehavior type = 3;
LivenessFailure liveness = 4;
SafetyFailure safety = 5;
// Nodes MUST verify this field is false for client-submitted reports
// Nodes must verify this field is false for client-submitted reports
bool submitted_by_node = 6;
}

message MisbehaviorReport {
bytes unsigned_misbehavior_report = 1;
// Server time when the report was stored. Used only for querying reports.
// This field is not signed.
uint64 server_time_ns = 1;
bytes unsigned_misbehavior_report = 2;
// Signed by the node hosting the report
xmtp.identity.associations.RecoverableEcdsaSignature signature = 2;
xmtp.identity.associations.RecoverableEcdsaSignature signature = 3;
}

0 comments on commit 552ca3f

Please sign in to comment.