-
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.
Merge pull request #2957 from oasisprotocol/matevz/feature/waitready-rpc
oasis-node: Add support for IsReady and WaitReady RPC methods
- Loading branch information
Showing
14 changed files
with
356 additions
and
68 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,10 @@ | ||
go/control: Add IsReady() and WaitReady() RPC methods | ||
|
||
Beside `IsSynced()` and `WaitSynced()` which are triggered when the consensus | ||
backend is synced, new `IsReady()` and `WaitReady()` methods have been added | ||
to the client protocol. These are triggered when all node workers have been | ||
initialized (including the runtimes) and the hosted processes are ready to | ||
process requests. | ||
|
||
In addition new `oasis-node debug control wait-ready` | ||
command was added which blocks the client until the node is ready. |
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,5 @@ | ||
go/worker/registration: Add SetAvailableWithCallback to RoleProvider | ||
|
||
The new method allows the caller to register a callback that will be invoked | ||
on a successful registration that includes the node descriptor updated by the | ||
passed hook. |
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.