Skip to content

Comments

add feature force-debug for all runtimes#1053

Merged
librelois merged 10 commits intomoonbeam-polkadot-v0.9.13from
elois-force-debug
Dec 7, 2021
Merged

add feature force-debug for all runtimes#1053
librelois merged 10 commits intomoonbeam-polkadot-v0.9.13from
elois-force-debug

Conversation

@librelois
Copy link
Collaborator

@librelois librelois commented Dec 3, 2021

What does it do?

Adds a compilation feature that allows to really implement Debug on the runtime side (no more <wasm:stripped>).
The idea is then to activate this feature in runtime override to have more detailed logs on some nodes.

What important points reviewers should know?

This feature requires to upgrade to polkadot-v0.9.13.

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@librelois librelois added the B0-silent Changes should not be mentioned in any release notes label Dec 3, 2021
@librelois librelois requested a review from tgmichel December 3, 2021 13:06
librelois and others added 4 commits December 3, 2021 14:48
* Add missing imports

* Make staking compile for try-runtime tests (#1014)

* fix

* fix lack of From impl compilation error

Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Copy link
Collaborator

@crystalin crystalin left a comment

Choose a reason for hiding this comment

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

This is not included in the default build right ?

@librelois
Copy link
Collaborator Author

This is not included in the default build right ?

Yes that's right, the feature is exposed but disabled in the official build for the on-chain runtime.

@crystalin crystalin added the A8-mergeoncegreen Pull request is reviewed well. label Dec 7, 2021
JoshOrndorff and others added 5 commits December 7, 2021 08:56
* copy spec from moonbeam-networks

* add bootnodes

* 👩‍🍳 Bake it
* Add CI workflow "Create client release ticket"

* make the text impersonal

* editorconfig

* commit suggestions
* Add CI workflow "Create runtime release ticket"

* add substitutes step
@librelois
Copy link
Collaborator Author

The only job that fails is the para-tests and they already fail on the base branch moonbeam-polkadot-v0.9.13, so I merge.

@librelois librelois merged commit a8c6332 into moonbeam-polkadot-v0.9.13 Dec 7, 2021
@librelois librelois deleted the elois-force-debug branch December 7, 2021 16:15
tgmichel added a commit that referenced this pull request Dec 24, 2021
* v0.9.13 update

* update utils to revert instead of error (using gasometer)

* improve try_dispatch util

* update assets-erc20 precompile set

* update balances-erc20 precompile

* update crowdloan-rewards precompile

* update democracy precompile

* update parachain-staking precompile

* update relay-encoder precompile

* update xcm-transactor precompile

* update xtokens precompile + remove refactored file

* update utils tests

* update asset-erc20 precompile mock/test

* update balances-erc20 precompile mock/test

* update crowdloan-rewards precompile mock/test

* update pallet-democracy precompile mock/test

* update parachain-staking precompile mock/test

* update relay-encoder precompile mock/test

* update xcm-transactor precompile mock/test

* update xtokens precompile mock/test

* toml-sort

* line length

* `TxPoolRuntimeApi` version 2

* Ethereum typed transactions

* PrecompilesType / Value for runtimes

* Add pallet_utility PalletOrigin assoc type

* Add pallet_scheduler OriginPrivilegeCmp assoc type

* Update EthereumRuntimeRPCApi `call` and `create`

* Handle typed transactions in `impl_self_contained_call`

* Update precompiles `PrecompileResult` + `is_static` + `is_precompile`

* Just match for input.len

* fmt

* Fix Erc20AssetsPrecompileSet

* Update StorageProvider impl

* Update service ConvertTransaction

* Remove service deprecated fields

* Add spawn task groups

* Add genesis schema to `frontier-schema-cache-task`

* More fixes :)

* Update tests

* fmt

* Remove parachain_id cli arg usage

* tests precompiles reverts

* `call_max_size` test for runtimes

* Filtered calls now return CallFiltered error

* VersionedMultiLocation needs to be Boxed

* Update xm-transactor tests

* fmt

* Update pallet-maintenance-mode tests

* Update frontier pin

* (ts test) update polkadotApi.tx.evm.call args

* Update frontier pin

* Add storage_schema to pallet-ethereum GenesisConfig

* Include EthereumStorageSchema::V2 in map + update frontier-schema-cache-task

* fmt

* toml-sort

* Update tests

* Add `pallet-base-fee`

* Use current base fee on precompile ts tests

* Update frontier pin

* Remove pallet ethereum configurable genesis schema

* Add tests for each type of transaction (#1040)

* Update `TransactionOptions` iface to 1559 fields

* Update tests to pass full `context` instead `web3`

* Include type and chainId in `createTransaction`

* add describeDevMoonbeamAllEthTxTypes to relevant tests

* Remove create blocks not needed

Co-authored-by: tgmichel <telmo@purestake.com>

* Impl `OnChargeEVMTransaction` in moonbase runtime

* Fix eth txn fee handling for `verifyLatestBlockFees` tests

* checker

* Update `open-runtime-module-library` pin

* Update dep pin

* Update polkadot pin

* usee struct literal syntax

* Pin substrate democracy vote events

* fmt

* Remove unused import

* Fix crowdloan ts test

* add feature force-debug for all runtimes (#1053)

* add feature force-debug for all runtimes

* apply toml_sort

* fix: AccountId20 must impl Debug (#1054)

* Adds github token to generate runtime script (#1055)

* Fix staking try runtime (attempt #2) (#1056)

* Add missing imports

* Make staking compile for try-runtime tests (#1014)

* fix

* fix lack of From impl compilation error

Co-authored-by: Amar Singh <asinghchrony@protonmail.com>

* Bake Moonbeam spec into the binary (#1063)

* copy spec from moonbeam-networks

* add bootnodes

* 👩‍🍳 Bake it

* Add CI workflow "Create client release ticket" (#1047)

* Add CI workflow "Create client release ticket"

* make the text impersonal

* editorconfig

* commit suggestions

* Add CI workflow "Create runtime release ticket" (#1062)

* Add CI workflow "Create runtime release ticket"

* add substitutes step

Co-authored-by: Alan Sapede <alan.sapede@gmail.com>
Co-authored-by: Stephen Shelton <steve@brewcraft.org>
Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>

* Girazoki xtokens fee with extrinsic (#1007)

* change xtokens precompile to accept new extrinsic

* Remove left over encoding file

* Cleanup

* Rust integration tests

* MOdify typescript tests to try with_Fee extrinsics

* Commit the compiled contract

* Point to latest

* Re-update cargo lock

* Mimic upstream changes

* Update lock

* toml formatter

* Fix test

* Fix test

* Adapt to distinct eth tx type

* Updates test setup for parachain tests

* Updates polkadot-launch version

* Naming convention

* Update crowdloan-rewards pin

* Re-introduce `parachain-id` cli arg

* Upate nimbus pin

* Update pallet democracy precompile tests

* pin shiny new nimbus branch

* fix Cargo.lock reversions. I wonder why that happened.

* Bring manual seal hotifx into substrate hotfix branch

* Fix tests

* Update `is_precompile` fn

* Update `open-runtime-module-library` pin

* Update frontier pin

* Follow up merge

* FMT

* Prettier

* Adapt new precompiles to 0.9.13

* unused import after merge

* New for precompileset

* Fix errors in unitests

* Fix unitests

* Calls are unfiltered now

* Update frontier pin

* Update ts test `test-balance-transfer` with pending

* Update ts test `test-contract-creation` with pending

* Prettify

* Update `test-pallet-maintenance-mode`

* Fix substrate version

* Fixes test setup

Co-authored-by: nanocryk <6422796+nanocryk@users.noreply.github.com>
Co-authored-by: Antoine Estienne <antoine@purestake.com>
Co-authored-by: Éloïs <c@elo.tf>
Co-authored-by: Alan Sapede <alan.sapede@gmail.com>
Co-authored-by: Stephen Shelton <steve@brewcraft.org>
Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
Co-authored-by: girazoki <gorka.irazoki@gmail.com>
Co-authored-by: Crystalin <alan@purestake.com>
Co-authored-by: Joshy Orndorff <admin@joshyorndorff.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A8-mergeoncegreen Pull request is reviewed well. B0-silent Changes should not be mentioned in any release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants