Skip to content

Commit

Permalink
coreapi: add ExecutionDiscrepancyDetectedEvent.Round
Browse files Browse the repository at this point in the history
cross-reference: oasisprotocol/oasis-core#5431

Adding this as nilable so we can detect versions below 23.0.3 leaving it out.
  • Loading branch information
pro-wh committed Feb 27, 2024
1 parent 552f33a commit fda2fb3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coreapi/v23.0/roothash/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ type ExecutorCommittedEvent struct {

// ExecutionDiscrepancyDetectedEvent is an execute discrepancy detected event.
type ExecutionDiscrepancyDetectedEvent struct {
// Round is the round in which the discrepancy was detected.
Round *uint64 `json:"round,omitempty"`
// Rank is the rank of the transaction scheduler.
Rank uint64 `json:"rank"`
// Timeout signals whether the discrepancy was due to a timeout.
Expand Down
13 changes: 13 additions & 0 deletions scripts/vendor-oasis-core/patches/v23.0/discrepancy_round.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/coreapi/v23.0/roothash/api/api.go b/coreapi/v23.0/roothash/api/api.go
index e7653d7d..e6a88db5 100644
--- a/coreapi/v23.0/roothash/api/api.go
+++ b/coreapi/v23.0/roothash/api/api.go
@@ -192,6 +192,8 @@ type ExecutorCommittedEvent struct {

// ExecutionDiscrepancyDetectedEvent is an execute discrepancy detected event.
type ExecutionDiscrepancyDetectedEvent struct {
+ // Round is the round in which the discrepancy was detected.
+ Round *uint64 `json:"round,omitempty"`
// Rank is the rank of the transaction scheduler.
Rank uint64 `json:"rank"`
// Timeout signals whether the discrepancy was due to a timeout.

0 comments on commit fda2fb3

Please sign in to comment.