Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c0dccbe
[service] better logging
clangenb Oct 9, 2023
09ba3d1
[service] probably fix OOM
clangenb Oct 9, 2023
7fb40ee
[service/parentchain_handler] rename `last_synced_header` to `sync_un…
clangenb Oct 12, 2023
30d99cb
[service/parentchain_handler] extract internal `sync_blocks` method
clangenb Oct 12, 2023
c608731
[service/parentchain_handler] some renaming
clangenb Oct 12, 2023
325303c
[service/parentchain_handler] some renaming
clangenb Oct 12, 2023
083ce2e
[service/parentchain_handler] fix break statement
clangenb Oct 12, 2023
960cc4d
[service/parentchain_handler] move check if up to date to the end of …
clangenb Oct 12, 2023
856a09e
[service/parentchain_handler] uplift total sync info from trace to pr…
clangenb Oct 12, 2023
dbb7474
[service/parentchain_handler] move check for monotonically rising blo…
clangenb Oct 12, 2023
cc8f3b7
[service/parentchain_handler] fix check for sleeping in sync process
clangenb Oct 12, 2023
58e14bc
[service/parentchain_handler] rename `until_header` to `sync_target`
clangenb Oct 12, 2023
a8b1928
[service/parentchain_handler] change for loop into while and better n…
clangenb Oct 12, 2023
42a2645
[service/parentchain_handler] add comment
clangenb Oct 12, 2023
43cac9e
[service/parentchain_handler] better logs
clangenb Oct 12, 2023
b749381
[service/parentchain_handler] better logs
clangenb Oct 12, 2023
89de215
[service/parentchain_handler] fix import condition in while loop
clangenb Oct 13, 2023
c2ba744
[service/parentchain_handler] introduce block sync error
clangenb Oct 13, 2023
4271c42
Merge branch 'master' into cl/fix-sidechain-light-client
clangenb Oct 13, 2023
600a983
Merge branch 'master' into cl/fix-sidechain-light-client
clangenb Oct 13, 2023
ec0a750
[service/main] improve log levels
clangenb Oct 14, 2023
3f8b757
[service] `sidechain_start_untrusted_rpc_server`downgrade tokyo handl…
clangenb Oct 14, 2023
14fbc5a
[service/main] distinguish better between different setups
clangenb Oct 14, 2023
f84e5ed
[service/main] extract duplicate code
clangenb Oct 14, 2023
0cbd95b
[service/main] fix clippy
clangenb Oct 14, 2023
e7d15e6
[service/main] fix clippy with teeracle feature
clangenb Oct 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[service] sidechain_start_untrusted_rpc_serverdowngrade tokyo handl…
…e arg to a borrow
  • Loading branch information
clangenb committed Oct 14, 2023
commit 3f8b757623fa737a2ed22d57a1eb7b333f141cd9
5 changes: 1 addition & 4 deletions service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,6 @@ fn start_worker<E, T, D, InitializationHandler, WorkerModeProvider>(

let tokio_handle = tokio_handle_getter.get_handle();

#[cfg(feature = "teeracle")]
let teeracle_tokio_handle = tokio_handle.clone();
Comment on lines -390 to -391
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer needed as another function needs a borrow now instead of an owned handle.


// ------------------------------------------------------------------------
// Get the public key of our TEE.
let tee_accountid = enclave_account(enclave.as_ref());
Expand Down Expand Up @@ -455,7 +452,7 @@ fn start_worker<E, T, D, InitializationHandler, WorkerModeProvider>(
&config,
enclave.clone(),
sidechain_storage.clone(),
tokio_handle,
&tokio_handle,
);
}

Expand Down
2 changes: 1 addition & 1 deletion service/src/sidechain_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub(crate) fn sidechain_start_untrusted_rpc_server<Enclave, SidechainStorage>(
config: &Config,
enclave: Arc<Enclave>,
sidechain_storage: Arc<SidechainStorage>,
tokio_handle: Handle,
tokio_handle: &Handle,
) where
Enclave: DirectRequest + Clone,
SidechainStorage: BlockPruner + FetchBlocks<SignedSidechainBlock> + Sync + Send + 'static,
Expand Down