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

simplify client #1328

Merged
merged 2 commits into from
Aug 29, 2024
Merged

simplify client #1328

merged 2 commits into from
Aug 29, 2024

Conversation

ermalkaleci
Copy link
Contributor

@ermalkaleci ermalkaleci commented Aug 19, 2024

Pull Request Summary

  • Make it possible to choose between libp2p and litep2p. Default to libp2p
  • Remove evm-tracing feature to have a single general purpose client. Enabling evm-tracing works the same.
  • Remove a lot of unnecessary code related to evm-tracing feature flag and different runtime adaptation
  • Update release gha to fit new changes
  • Add production profile (optimized)

@ermalkaleci ermalkaleci added the client This PR/Issue is related to the topic “client”. label Aug 19, 2024
@ermalkaleci ermalkaleci marked this pull request as ready for review August 19, 2024 18:40
Copy link

Code Coverage

Package Line Rate Branch Rate Health
primitives/src 59% 0%
pallets/unified-accounts/src 86% 0%
precompiles/sr25519/src 64% 0%
pallets/collator-selection/src 92% 0%
precompiles/assets-erc20/src 78% 0%
pallets/xc-asset-config/src 50% 0%
pallets/dapp-staking-v3/src 84% 0%
chain-extensions/types/unified-accounts/src 0% 0%
precompiles/unified-accounts/src 100% 0%
pallets/inflation/src 93% 0%
pallets/astar-xcm-benchmarks/src/generic 100% 0%
pallets/static-price-provider/src 85% 0%
precompiles/dapp-staking-v3/src/test 0% 0%
pallets/dapp-staking-v3/rpc/runtime-api/src 0% 0%
precompiles/dispatch-lockdrop/src 86% 0%
pallets/dynamic-evm-base-fee/src 89% 0%
pallets/astar-xcm-benchmarks/src/fungible 100% 0%
pallets/collective-proxy/src 86% 0%
pallets/astar-xcm-benchmarks/src 86% 0%
precompiles/dapp-staking-v3/src 90% 0%
pallets/dapp-staking-v3/src/test 0% 0%
pallets/price-aggregator/src 82% 0%
chain-extensions/types/assets/src 0% 0%
pallets/ethereum-checked/src 74% 0%
pallets/dapp-staking-v3/src/benchmarking 98% 0%
pallets/dapp-staking-migration/src 0% 0%
chain-extensions/pallet-assets/src 56% 0%
precompiles/substrate-ecdsa/src 74% 0%
precompiles/xcm/src 71% 0%
chain-extensions/unified-accounts/src 0% 0%
primitives/src/xcm 65% 0%
Summary 77% (3565 / 4627) 0% (0 / 0)

Minimum allowed line rate is 50%

Copy link
Contributor

@ipapandinas ipapandinas left a comment

Choose a reason for hiding this comment

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

Great initiative for code maintainability! I'm almost looking forward to the next version uplift 😁

But I have a quick question: Doesn't this design decision to enable EVM tracing for the general client introduce unnecessary overhead for production nodes that don't need it?

bin/collator/src/parachain/service.rs Show resolved Hide resolved
@ermalkaleci
Copy link
Contributor Author

Great initiative for code maintainability! I'm almost looking forward to the next version uplift 😁

But I have a quick question: Doesn't this design decision to enable EVM tracing for the general client introduce unnecessary overhead for production nodes that don't need it?

EVM tracing needs to be enabled by option --ethapi and wasm-runtime-override with custom wasm

Copy link
Contributor

@ipapandinas ipapandinas left a comment

Choose a reason for hiding this comment

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

LGTM

bin/collator/src/local/service.rs Show resolved Hide resolved
runtime/local/src/lib.rs Show resolved Hide resolved
bin/collator/src/parachain/service.rs Show resolved Hide resolved
bin/collator/src/parachain/service.rs Show resolved Hide resolved
bin/collator/src/parachain/service.rs Show resolved Hide resolved
Copy link
Member

@Dinonard Dinonard left a comment

Choose a reason for hiding this comment

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

LGTM

Great cleanup!

@ermalkaleci ermalkaleci merged commit 724c763 into master Aug 29, 2024
13 checks passed
@ermalkaleci ermalkaleci deleted the feat/simplify-client branch August 29, 2024 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client This PR/Issue is related to the topic “client”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants