-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race conditions, send epochNumber in submitTx, refactor
- Loading branch information
Showing
22 changed files
with
222 additions
and
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Send and check expected epoch number during transaction execution | ||
|
||
Stress tests revealed some race conditions during transaction execution when | ||
there is an epoch transition. Runtime client now sends `expectedEpochNumber` | ||
parameter in `SubmitTx` call. The transaction scheduler checks whether the | ||
expected epoch matches its local one. Additionally, if state transition occurs | ||
during transaction execution, Executor and Merge committee correctly abort the | ||
transaction. |
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,11 @@ | ||
Replace redundant fields with `Consensus` accessors | ||
|
||
`Backend` in `go/consensus/api` contains among others accessors for | ||
`Beacon`, `EpochTime`, `Registry`, `RootHash`, `Scheduler`, and | ||
`KeyManager`. Use those instead of direct references. The following | ||
structs were affected: | ||
- `Node` in `go/cmd/node`, | ||
- `Node` in `go/common/commmittee`, | ||
- `Worker` in `go/common`, | ||
- `clientCommon` in `go/runtime/client`, | ||
- `Group` in `go/worker/common/committee`. |
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 @@ | ||
e2e/multiple-runtimes: Enable `EpochtimeMock`, add `numComputeWorkers` |
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
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
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
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
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
Oops, something went wrong.