-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coreapi: add ExecutionDiscrepancyDetectedEvent.Round
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
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
scripts/vendor-oasis-core/patches/v23.0/discrepancy_round.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |