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

🔖 Whitelist pallet_funding sudo and root calls. New Polimec Release #324

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

JuaniRios
Copy link
Contributor

@JuaniRios JuaniRios commented Jun 14, 2024

What?

Upgrade Polimec

Why?

Whitelist the auction and root calls

How?

Add them to the Basecall filter

Testing?

try-runtime output:

❯ try-runtime --runtime ./target/release/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm on-runtime-upgrade live --uri wss://rpc.polimec.org:443
[2024-06-14T13:30:20Z INFO  remote-ext] replacing wss:// in uri with https://: "https://rpc.polimec.org:443" (ws is currently unstable for fetching remote storage, for more see https://github.com/paritytech/jsonrpsee/issues/1086)
[2024-06-14T13:30:20Z INFO  remote-ext] since no at is provided, setting it to latest finalized head, 0xdd9f49b5e3403d646002a5329323dbb0e69ff3e29068277338bcc4322d016eca
[2024-06-14T13:30:20Z INFO  remote-ext] since no prefix is filtered, the data for all pallets will be downloaded
[2024-06-14T13:30:20Z INFO  remote-ext] scraping key-pairs from remote at block height 0xdd9f49b5e3403d646002a5329323dbb0e69ff3e29068277338bcc4322d016eca
✅ Found 9362 keys (0.39s)
[00:00:01] ✅ Downloaded key values 5,586.4844/s [===================================================================================================] 9362/9362 (0s)
✅ Inserted keys into DB (0.02s)
[2024-06-14T13:30:22Z INFO  remote-ext] adding data for hashed prefix: , took 2.19s
[2024-06-14T13:30:22Z INFO  remote-ext] adding data for hashed key: 3a636f6465
[2024-06-14T13:30:22Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
[2024-06-14T13:30:22Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
[2024-06-14T13:30:22Z INFO  remote-ext] 👩‍👦 no child roots found to scrape
[2024-06-14T13:30:22Z INFO  remote-ext] initialized state externalities with storage root 0x5bd4097792b70d2f8044967ff8a7cee2061de95f180124fcf6c665419efc6a17 and state_version V1
[2024-06-14T13:30:22Z INFO  try-runtime::cli] Original runtime [Name: RuntimeString::Owned("polimec-mainnet")] [Version: 7002] [Code hash: 0x4398...b5e4]
[2024-06-14T13:30:22Z INFO  try-runtime::cli] New runtime      [Name: RuntimeString::Owned("polimec-mainnet")] [Version: 7003] [Code hash: 0xf246...8455]
[2024-06-14T13:30:23Z INFO  try-runtime::cli] 🚀 Speed up your workflow by using snapshots instead of live state. See `try-runtime create-snapshot --help`.
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade with checks: PreAndPost
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 547614 bytes total.
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] 🔬 TryRuntime_on_runtime_upgrade succeeded! Running it again without checks for weight measurements.
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade again to check idempotency: PreAndPost
    
    
[2024-06-14T13:30:23Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------
    
    
[2024-06-14T13:30:23Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 547614 bytes total.
[2024-06-14T13:30:23Z INFO  try-runtime::cli] PoV size (zstd-compressed compact proof): 7.8 KB. For parachains, it's your responsibility to verify that a PoV of this size fits within any relaychain constraints.
[2024-06-14T13:30:23Z INFO  try-runtime::cli] Consumed ref_time: 0.000925s (0.19% of max 0.5s)
[2024-06-14T13:30:23Z INFO  try-runtime::cli] ✅ No weight safety issues detected. Please note this does not guarantee a successful runtime upgrade. Always test your runtime upgrade with recent state, and ensure that the weight usage of your migrations will not drastically differ between testing and actual on-chain execution.

polimec-node on  06-14-whitelist_pallet_funding_sudo_and_root_calls [!] via 🦀 v1.76.0-nightly took 3s 

srtool output:

✨ Your Substrate WASM Runtime is ready! ✨
✨ WASM  : runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.wasm
✨ Z_WASM: runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm
Summary generated with srtool v0.15.0 using the docker image paritytech/srtool:1.77.0:
 Package     : polimec-runtime v0.7.0
 GIT commit  : 5385a0f9f7dc451d4b513f0be5bd6ca22501032a
 GIT tag     : v0.7.2
 GIT branch  : 06-14-whitelist_pallet_funding_sudo_and_root_calls
 Rustc       : rustc 1.77.0 (aedd173a2 2024-03-17)
 Time        : 2024-06-14T13:39:54Z

== Compact
 Version          : polimec-mainnet-7003 (polimec-mainnet-0.tx2.au1)
 Metadata         : V14
 Size             : 5.05 MB (5300323 bytes)
 setCode          : 0x9ef21882fcd88f36b505c254fc62d197aa0c08350ac0b8afbb9b67674c8376fb
 authorizeUpgrade : 0x086b1ef3054d630c355d5ac167895ea87322ac3cfe69bd694d30027aa26a4651
 IPFS             : Qmc4u4zXWfyP5oN75pcRo39BbmJBkEoUSwDbK7BocnkBWC
 BLAKE2_256       : 0x9b3fd1108446b57fc13918246078fc12273a83a8838653885c6c65754ef39e67
 Wasm             : runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.wasm

== Compressed
 Version          : polimec-mainnet-7003 (polimec-mainnet-0.tx2.au1)
 Metadata         : V14
 Size             : 1.26 MB (1317183 bytes)
 Compression      : 75.15%
 setCode          : 0xa30e79d56610ab3da235849de5c0045905ea91490832c763cd832a240f278037
 authorizeUpgrade : 0xe8d25332054a46040087608f1ff553ef1f5f03c6edbc20b3ba585d2b30a3280c
 IPFS             : QmP7f6jbrHXnroEvxyDuYoSKb7htr28teDkoKmiNok9jL6
 BLAKE2_256       : 0xbcc6fc9d1ff6d9c662d7ee392132838313315e8904c0f5bdeb55935a2e261875
 Wasm             : runtimes/polimec/target/srtool/production/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm


Copy link
Contributor Author

JuaniRios commented Jun 14, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @JuaniRios and the rest of your teammates on Graphite Graphite

@JuaniRios JuaniRios force-pushed the 06-13-fix_xcm_execution_fee_destinations branch from 3c1681d to 27e6b72 Compare June 14, 2024 12:47
@JuaniRios JuaniRios force-pushed the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch from aee0d9f to 4b6755d Compare June 14, 2024 12:47
@JuaniRios JuaniRios force-pushed the 06-13-fix_xcm_execution_fee_destinations branch from 27e6b72 to 2cffa21 Compare June 14, 2024 13:01
@JuaniRios JuaniRios force-pushed the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch from 4b6755d to e0c10f4 Compare June 14, 2024 13:01
@JuaniRios JuaniRios force-pushed the 06-13-fix_xcm_execution_fee_destinations branch from 2cffa21 to db91167 Compare June 14, 2024 13:02
@JuaniRios JuaniRios force-pushed the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch 2 times, most recently from ab6da77 to 5385a0f Compare June 14, 2024 13:04
@JuaniRios JuaniRios changed the title Whitelist pallet_funding sudo and root calls Whitelist pallet_funding sudo and root calls. New Polimec Release Jun 14, 2024
@JuaniRios JuaniRios changed the title Whitelist pallet_funding sudo and root calls. New Polimec Release 🔖 Whitelist pallet_funding sudo and root calls. New Polimec Release Jun 14, 2024
@JuaniRios JuaniRios self-assigned this Jun 14, 2024
@JuaniRios JuaniRios marked this pull request as ready for review June 14, 2024 13:47
@JuaniRios JuaniRios force-pushed the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch from 5385a0f to fc57c4e Compare June 14, 2024 13:47
@JuaniRios JuaniRios force-pushed the 06-13-fix_xcm_execution_fee_destinations branch from db91167 to afbc12c Compare June 14, 2024 13:49
@JuaniRios JuaniRios force-pushed the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch from fc57c4e to f73f9a6 Compare June 14, 2024 13:49
Base automatically changed from 06-13-fix_xcm_execution_fee_destinations to main June 14, 2024 13:49
@JuaniRios JuaniRios merged commit b9595a8 into main Jun 17, 2024
@JuaniRios JuaniRios deleted the 06-14-whitelist_pallet_funding_sudo_and_root_calls branch June 17, 2024 07:40
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.

2 participants