Polimec / polimec-node

Decentralized community-driven funding protocol for Web3
https://www.polimec.org/
GNU General Public License v3.0
14 stars 6 forks source link

🚀 Upgrade politest #234

Closed lrazovic closed 7 months ago

lrazovic commented 7 months ago

What?

Deploy the latest updates on Politest.

try-runtime \
        --runtime target/release/wbuild/politest-runtime/politest_runtime.compact.compressed.wasm \
        on-runtime-upgrade  \
        live --uri wss://beta.rolimec.org:443
[2024-04-12T14:52:06Z INFO  remote-ext] replacing wss:// in uri with https://: "https://beta.rolimec.org:443" (ws is currently unstable for fetching remote storage, for more see https://github.com/paritytech/jsonrpsee/issues/1086)
[2024-04-12T14:52:07Z INFO  remote-ext] since no at is provided, setting it to latest finalized head, 0xaefdd861091fee97ac4bacdbf63b7edcada5143559f15fc2853aa066ec6a1e7e
[2024-04-12T14:52:07Z INFO  remote-ext] since no prefix is filtered, the data for all pallets will be downloaded
[2024-04-12T14:52:07Z INFO  remote-ext] scraping key-pairs from remote at block height 0xaefdd861091fee97ac4bacdbf63b7edcada5143559f15fc2853aa066ec6a1e7e
✅ Found 4401 keys (0.14s)
[00:00:00] ✅ Downloaded key values 9,111.0565/s [=====================================================================================================] 4401/4401 (0s)
✅ Inserted keys into DB (0.02s)
[2024-04-12T14:52:07Z INFO  remote-ext] adding data for hashed prefix: , took 0.73s
[2024-04-12T14:52:07Z INFO  remote-ext] adding data for hashed key: 3a636f6465
[2024-04-12T14:52:07Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
[2024-04-12T14:52:07Z INFO  remote-ext] adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
[2024-04-12T14:52:07Z INFO  remote-ext] 👩‍👦 no child roots found to scrape
[2024-04-12T14:52:07Z INFO  remote-ext] initialized state externalities with storage root 0xd205dfa5a3423dee5ff0706ce282e0599c12af59f994fdd8c69bf8e70b2f9b72 and state_version V1
[2024-04-12T14:52:07Z INFO  try-runtime::cli] Original runtime [Name: RuntimeString::Owned("politest")] [Version: 6003] [Code hash: 0xa9b5...306a]
[2024-04-12T14:52:08Z INFO  try-runtime::cli] New runtime      [Name: RuntimeString::Owned("politest")] [Version: 6004] [Code hash: 0x9546...885c]
[2024-04-12T14:52:08Z INFO  try-runtime::cli] 🚀 Speed up your workflow by using snapshots instead of live state. See `try-runtime create-snapshot --help`.
[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade with checks: PreAndPost

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  runtime::frame-support] 🐥 New pallet "Dispenser" detected in the runtime. The pallet has no defined storage version, so the on-chain version is being initialized to StorageVersion(0).
[2024-04-12T14:52:08Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 159760 bytes total.
[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] 🔬 TryRuntime_on_runtime_upgrade succeeded! Running it again without checks for weight measurements.

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ------------------------------------------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  runtime::frame-support] 🐥 New pallet "Dispenser" detected in the runtime. The pallet has no defined storage version, so the on-chain version is being initialized to StorageVersion(0).
[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] 🔬 Running TryRuntime_on_runtime_upgrade again to check idempotency: PreAndPost

[2024-04-12T14:52:08Z INFO  try_runtime_core::misc] ---------------------------------------------------------------------------------

[2024-04-12T14:52:08Z INFO  runtime::executive] ✅ Entire runtime state decodes without error. 159760 bytes total.
[2024-04-12T14:52:08Z INFO  try-runtime::cli] PoV size (zstd-compressed compact proof): 3.5 KB. For parachains, it's your responsibility to verify that a PoV of this size fits within any relaychain constraints.
[2024-04-12T14:52:08Z INFO  try-runtime::cli] Consumed ref_time: 0.00105s (0.21% of max 0.5s)
[2024-04-12T14:52:08Z 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.