Skip to content
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

integrate pallet teerex refactoring #1390

Merged
merged 71 commits into from
Aug 7, 2023
Merged

Conversation

brenzi
Copy link
Collaborator

@brenzi brenzi commented Jul 13, 2023

closes #1384

Merge this first:

done:

  • lots of boilerplate changes due to refactoring of dispatchables and storages
  • nothing spectacular, though

OverOrion and others added 28 commits June 13, 2023 09:22
* [local-setup] fix setup with two workers: avoid using the same data dirs. (#1358)

* [ita_stf/test_genesis] remove reserved balance from state, as it doesn't exist anymore

* [enclave-runtime/top_pool_execution] downgrade logs to trace

* [state_handler] add debug and trace logs

* add additional flags for the worker setup

* [its-consensus-aura/block_importer] add some more logs

* local setup add some more logging
@brenzi brenzi marked this pull request as draft July 13, 2023 14:33
@brenzi
Copy link
Collaborator Author

brenzi commented Aug 5, 2023

I think the flaky M6 test might be mitigated by #1405

) -> Result<Vec<AuthorityId<P>>, ConsensusError>
where
ValidateerFetcher: ValidateerFetch + EnclaveOnChainOCallApi,
P: Pair,
P::Public: UncheckedFrom<[u8; 32]>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Authorities as well are too generic IMO. We could use the same itp_types::AccountId type strictly
too much trait bound jungle here

@@ -881,16 +915,36 @@ fn enclave_account<E: EnclaveBase>(enclave_api: &E) -> AccountId32 {
}

/// Checks if we are the first validateer to register on the parentchain.
fn we_are_primary_validateer(
fn we_are_primary_worker(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this logic has now changed to something more meaningful. Instead of testing if we are the first enclave to have ever registered on this chain ( which would allow only a single sidechain to ever exist) we now check shard_status and see if some other enclave than self has ever touched that shard

@brenzi
Copy link
Collaborator Author

brenzi commented Aug 5, 2023

Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Cool, only some minor issues; otherwise this looks more straightforward than I expected it to be!

cli/src/base_cli/commands/listen.rs Show resolved Hide resolved
cli/src/base_cli/mod.rs Show resolved Hide resolved
core/parentchain/indirect-calls-executor/src/executor.rs Outdated Show resolved Hide resolved
service/src/main.rs Show resolved Hide resolved
service/src/main.rs Show resolved Hide resolved
service/src/setup.rs Show resolved Hide resolved
sidechain/consensus/aura/src/lib.rs Show resolved Hide resolved
sidechain/validateer-fetch/Cargo.toml Show resolved Hide resolved
@brenzi brenzi requested a review from clangenb August 6, 2023 18:56
brenzi and others added 3 commits August 7, 2023 09:27
Co-authored-by: clangenb <37865735+clangenb@users.noreply.github.com>
@brenzi brenzi mentioned this pull request Aug 7, 2023
3 tasks
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

One minor thing, otherwise it looks good to me now! Will approve.

sidechain/validateer-fetch/Cargo.toml Show resolved Hide resolved
@brenzi brenzi merged commit 2c0cab6 into master Aug 7, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-core Affects a core part B1-releasenotes C7-high ❗️ Elevates a release containing this PR to "high priority" E6-parentchain PR breaks interface to parentchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade for refactored teerex pallet
3 participants