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

Remove unused dep from node #2171

Merged
merged 3 commits into from
Sep 30, 2023
Merged

Remove unused dep from node #2171

merged 3 commits into from
Sep 30, 2023

Conversation

Kailai-Wang
Copy link
Collaborator

Context

resolves #2167

I went through the unused crates one by one to make sure we didn't need them. I compared it with polkadot-sdk and/or other parachains too.

Standard crates that are simply not referenced:

  • codec
  • hex-literal
  • polkadot-parachain
  • sp-inherents

Unused deps introduced by evm change

  • fp-consensus
  • pallet-ethereum
  • pallet-evm

Unused cumulus deps in our case:

  • cumulus-client-collator
  • cumulus-client-consensus-relay-chain
  • cumulus-relay-chain-rpc-interface

The main divergence here is if we should use the AuraVerifier from substrate, or a wrapped Verifier which has an additional relay_chain_verifier in case the client doesn't have aura. But since we use aura (same as the majority of parachains), it doesn't matter so much - we can keep our current implementation.

However, we are not saving a lot of compilation time and many crates are still indirectly referenced, see the changes in Cargo.lock

@Kailai-Wang Kailai-Wang self-assigned this Sep 29, 2023
@Kailai-Wang Kailai-Wang requested review from kziemianek and a team September 29, 2023 14:57
@Kailai-Wang Kailai-Wang merged commit 585f332 into dev Sep 30, 2023
28 checks passed
@Kailai-Wang Kailai-Wang deleted the 2167-unusd-dep branch September 30, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unused litentry-collator dependencies
2 participants