-
Notifications
You must be signed in to change notification settings - Fork 46
PoC: Broadcast blocks #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
5636416
[worker/rpc] small cleanup
clangenb f5aad7f
refactor: move worker-api to rpc/client. move rpc to rpc/server
clangenb 11ec0a0
fix path after rebase
clangenb 17eca91
initial draft of worker struct
clangenb f833d65
[worker] move hex_encode to utils
clangenb 0c4d3e7
[worker] add error type add minimal implementation of Worker trait
clangenb 2254dce
[worker/rpc/client] put `watch` and `get_rsa_key` behind a trait
clangenb cb64128
[worker] move check files to utils
clangenb 0e57ea7
[worker] move write_files_and_whitespace_pad to utils
clangenb db678f3
[worker] update futures and add jsonrpsee dev-dep.
clangenb fd6c57a
[primitives/node] Enclave type now contains `PalletString` instead of…
clangenb f7d984e
[node/primitives] add improved enclave definition.
clangenb 3bdd682
[worker/tests] add some mocks.
clangenb b955522
[worker] fmt
clangenb da7febb
[worker] PoC send to other worker blocks in unit test.
clangenb 707c3b7
[worker/test] mock enclave deterministic enclaves
clangenb cf1d6f3
[worker] add Serialization error
clangenb 1edb129
[worker/worker] make println! to info!
clangenb 7288c8f
typo
clangenb b83c2d2
Add simpel RwLock test for the worker.
clangenb 013b301
[worker/worker] use test_config defined in tests/commons
clangenb 965b1be
[worker/worker] remove some warnings
clangenb b5ae6de
[worker] initialize lazy_static worker
clangenb 792802b
[stf] move all sgx stuff into sgx file.
clangenb 7ed5253
move StfStatePayload to Stf
clangenb 55a31db
add stf result
clangenb c7058b1
[Stf] add apply_state_diff
clangenb 79d0d18
[primitives/worker] fix conditional compilation for sgx. No need of s…
clangenb 8436c8f
Revert "[primitives/worker] fix conditional compilation for sgx. No n…
clangenb c2f3f03
[stf] more rigorous checks in apply_state_diff.
clangenb 6411ca3
[worker] move instantiation of the global Worker into the fn worker.
clangenb 42b776d
[stf] add some unit tests for stf.
clangenb 5bd35e7
[worker] add PoC of `EnclaveApi` trait with call_rpc_methods ffi wrap…
clangenb 383acfa
[worker/rpc/server] remove PoC test and add sidechain_importBlock tes…
clangenb cccb6ca
[worker/rpc/server] fix unit test.
clangenb ec3d2b7
[worker/rpc] use in sidechain_blockImport rpc the RpcRequest struct o…
clangenb f4bbd9c
[enclave/rpc] add `sidechain_importBlock` rpc and tests
clangenb 2871080
add draft of sending a mock_register_enclave_xt, which contains an em…
clangenb ee40529
wip re-introduce branch-ids and bump substrate@8a9a8f170f556beb7c86e9…
clangenb 9755024
fix duplicate substrate deps
clangenb 3b3f801
[primitives/node] define SignedBlock ourselves, as its no longer defi…
clangenb 30c657f
[worker & clien] update code for version bumps
clangenb 7fe17d7
[enclave] bump deps
clangenb 6c49c56
Cargo.lock (fmt changes after rustc update)
clangenb 253e02c
Cargo.lock after rebase on `bump-deps` branch.
clangenb 720dc51
fix minor rebase errors
clangenb fb2562c
[local-setup] prevent nonce clash while bootstrapping the enclaves.
clangenb 8d5cdd0
[local-setup] port setup
clangenb b96c748
[local-setup] fix purging of chain_relay_db
clangenb 099c4ae
[main] move worker config print into run, such that it does not inter…
clangenb dd069c5
[local-setup] be more verbose about file deletion.
clangenb d97336b
[local-setup] adjust worker log-level
clangenb d4bd261
successfully register on-chain without extrinsics
clangenb a813ccd
[local-setup] node log downgrade: debug -> info
clangenb eefb850
fix local-setup: works perfectly know.
clangenb b5b96cc
[primitives/enclave-api] extract ffi to separate crate
clangenb 58aa2bb
successfully gossip blocks, but rpc returns invalid params error.
clangenb 1991d96
remove unwrap in ocall_send_block_and_confirmation. The worker can't …
clangenb e5342ad
[worker] add `WorkerError::Custom(Box<dyn std::error::Error)` error v…
clangenb 6e45a5c
[worker] fix gossip blocks correctly to new async worker api
clangenb bc3db54
[worker] fix return value of rpc. Successfully broadcast blocks
clangenb 5f0fad1
[worker] extrate peers() method
clangenb c11fdfc
[local-setup] fix 1/10th change of noce clash
clangenb 4d6c145
[worker] fix: wait until tokio::runtime is available.
clangenb 0b9a10b
[worker] remove unused imports
clangenb e704905
[worker] print rpc response in strings instead of bytes
clangenb c9c2359
[primitives/enclave-api] extract mock_register to TeeRexApi
clangenb 36daa76
[worker] fix tests
clangenb e4a1ef8
[primitives/enclave-api] add some docs
clangenb d81ab2f
minor cleanup
clangenb 6261088
Cargo.lock after rebase
clangenb 649c788
some cleanup
clangenb 1d56002
bump jsonrpc-core and thereby remove duplicate st-std dep
clangenb cd22c4a
bump api-client
clangenb 9b2fa2e
Cargo.lock after rebase
clangenb 02fc88b
remove obsolete Cargo feature
clangenb e805a05
cleanup
clangenb d29e216
[primitives/enclave-api] add documentation to ffi
clangenb 4686d2d
typos
clangenb 6fe34b9
Makefile: default to SG_MODE=HW
clangenb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.