# Polkadot Upgrade 2.0.5
Highlights of the [full CHANGELOG](https://github.com/polkadot-fellows/runtimes/releases/tag/v2.0.5):
- Capped Issuance
- Solidity Smart Contracts
- Two seconds block time on Hub
## Elastic Scaling
Hub needs three cores for its 2 seconds block times. This was done on [Kusama](https://hackmd.io/sky8Y81_SIeYprc8fnSi5g) already.
Problem:
Governance can only assign a core with `Broker::force_reserve` for the next cycle but we do not want to wait that long. This is because of a bug in `force_reserve` (see comment).
Solution:
- Acquire two cores now (buy or beg)
- Assign them to PAH
- Renew them in the next cycle
- Wait for the `force_reserve` from the 2.0.5 upgrade
- Do not renew the cores anymore
## Reproduction
Polkadot Runtime Upgrade 2.0.5
- Coretime force reserve: 0x280208321704ffffffffffffffffffff02e80300006200321704ffffffffffffffffffff02e80300006300
- Coretime set storage: [0x000408b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076a66cf12d4330e4e67feb1050062004004ffffffffffffffffffff02e8030000b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076adff434d3b0b61279feb1050063004004ffffffffffffffffffff02e8030000](https://github.com/polkadot-fellows/runtimes/blob/b6556e313e6b425048277b76c4844fc3171e438e/system-parachains/coretime/coretime-polkadot/src/tests.rs#L304-L353)
- Combined: 0x28020c321704ffffffffffffffffffff02e80300006200321704ffffffffffffffffffff02e80300006300000408b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076a66cf12d4330e4e67feb1050062004004ffffffffffffffffffff02e8030000b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076adff434d3b0b61279feb1050063004004ffffffffffffffffffff02e8030000
- Hash: 0xc70191cbb6348d55c232dd9d73c0cd3ca3ff63491dc36317fc4ddad1221eece8
```bash
opengov-cli build-upgrade --network polkadot --relay-version v2.0.5 --additional 0x1f0005010100b50f05082f0000060200b90228020c321704ffffffffffffffffffff02e80300006200321704ffffffffffffffffffff02e80300006300000408b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076a66cf12d4330e4e67feb1050062004004ffffffffffffffffffff02e8030000b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076adff434d3b0b61279feb1050063004004ffffffffffffffffffff02e8030000
```
XCM: 0x411a78f8e201d6dab2f1b94ee1c97dcdd7cf3878927842418e7769733e40aede
```pre
Downloading runtimes.
Downloading... polkadot_runtime-v2000005.compact.compressed.wasm
Downloading... asset-hub-polkadot_runtime-v2000005.compact.compressed.wasm
Downloading... collectives-polkadot_runtime-v2000005.compact.compressed.wasm
Downloading... bridge-hub-polkadot_runtime-v2000005.compact.compressed.wasm
Downloading... people-polkadot_runtime-v2000005.compact.compressed.wasm
Downloading... coretime-polkadot_runtime-v2000005.compact.compressed.wasm
Generating parachain authorization calls. The runtime hashes are logged if you would like to verify them with srtool.
Polkadot Relay Chain Runtime Hash: 0x60550e5af07679a410ac69097953c77093e22b6be2b5d917b789ff9a0be175ca
Polkadot Asset Hub Runtime Hash: 0xf2eb64dadd41429647c18a35d2a58380fa6be26f69d757e0008a8c8d3dded59b
Polkadot Collectives Runtime Hash: 0xc03d615f0d16b295be0edcb28fcc400ff6879f4f58e449fb44b5b15d68574fa7
Polkadot Bridge Hub Runtime Hash: 0x9785b024dd25484b497b9bb8ebe51d09af5c772ced2e528197b1cf290b2aa085
Polkadot People Runtime Hash: 0x7fe19ab119ce89bde1a0d266b7ccea551ecee9411b96cb92db3a6016ff812d49
Polkadot Coretime Runtime Hash: 0x36c36e450e1ba5d0eda53cde13e6b6329eb67c7b299e0754008c711b9aef8eb3
Batching calls.
Success! The call data was written to ./upgrade-polkadot-2.0.5/polkadot-2.0.5.call
To submit this as a referendum in OpenGov, run:
opengov-cli submit-referendum \
--proposal "./upgrade-polkadot-2.0.5/polkadot-2.0.5.call" \
--network "polkadot" --track "whitelistedcaller" --at 29693241
```
Blocktime Polkadot Relay 6.0375s for 27th January 11:59 noon UTC:
Naive 6 seconds block: https://polkadot.subscan.io/block/29694383
6.0375 s block time: https://polkadot.subscan.io/block/29693241
```pre
Open a Fellowship referendum to whitelist the call:
https://dev.papi.how/extrinsics#data=0x3d003e0201cc1f0005010100a10f05082f0000060300884000a39796bee7924590ab788091638152a743aedcc657d89602c2e1c1f6a4c9df24010a000000&networkId=polkadot_collectives&endpoint=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io
Submit the preimage for the public referendum:
https://dev.papi.how/extrinsics#data=0x05008d07400328041c1f0005010005082f000006020088000960550e5af07679a410ac69097953c77093e22b6be2b5d917b789ff9a0be175ca0009f2eb64dadd41429647c18a35d2a58380fa6be26f69d757e0008a8c8d3dded59b1f0005010100a50f05082f0000060200880009c03d615f0d16b295be0edcb28fcc400ff6879f4f58e449fb44b5b15d68574fa71f0005010100a90f05082f00000602008800099785b024dd25484b497b9bb8ebe51d09af5c772ced2e528197b1cf290b2aa0851f0005010100b10f05082f00000602008800097fe19ab119ce89bde1a0d266b7ccea551ecee9411b96cb92db3a6016ff812d491f0005010100b50f05082f000006020088000936c36e450e1ba5d0eda53cde13e6b6329eb67c7b299e0754008c711b9aef8eb31f0005010100b50f05082f0000060200b90228020c321704ffffffffffffffffffff02e80300006200321704ffffffffffffffffffff02e80300006300000408b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076a66cf12d4330e4e67feb1050062004004ffffffffffffffffffff02e8030000b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076adff434d3b0b61279feb1050063004004ffffffffffffffffffff02e8030000&networkId=polkadot_asset_hub&endpoint=wss%3A%2F%2Fasset-hub-polkadot-rpc.dwellir.com
Open a public referendum to dispatch the call:
https://dev.papi.how/extrinsics#data=0x3e003f0d026c19d9be03b9c26bea09eff0169f5e52f6da4beda7bbf9057eea9c33b4281c4be3010000003915c501&networkId=polkadot_asset_hub&endpoint=wss%3A%2F%2Fasset-hub-polkadot-rpc.dwellir.com
Batch to submit on Polkadot Asset Hub:
https://dev.papi.how/extrinsics#data=0x28040805008d07400328041c1f0005010005082f000006020088000960550e5af07679a410ac69097953c77093e22b6be2b5d917b789ff9a0be175ca0009f2eb64dadd41429647c18a35d2a58380fa6be26f69d757e0008a8c8d3dded59b1f0005010100a50f05082f0000060200880009c03d615f0d16b295be0edcb28fcc400ff6879f4f58e449fb44b5b15d68574fa71f0005010100a90f05082f00000602008800099785b024dd25484b497b9bb8ebe51d09af5c772ced2e528197b1cf290b2aa0851f0005010100b10f05082f00000602008800097fe19ab119ce89bde1a0d266b7ccea551ecee9411b96cb92db3a6016ff812d491f0005010100b50f05082f000006020088000936c36e450e1ba5d0eda53cde13e6b6329eb67c7b299e0754008c711b9aef8eb31f0005010100b50f05082f0000060200b90228020c321704ffffffffffffffffffff02e80300006200321704ffffffffffffffffffff02e80300006300000408b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076a66cf12d4330e4e67feb1050062004004ffffffffffffffffffff02e8030000b84dcb50595177a3177648411a42aca0f5b20f0cdcf1dc08a3b45e596567ea076adff434d3b0b61279feb1050063004004ffffffffffffffffffff02e80300003e003f0d026c19d9be03b9c26bea09eff0169f5e52f6da4beda7bbf9057eea9c33b4281c4be3010000003915c501&networkId=polkadot_asset_hub&endpoint=wss%3A%2F%2Fasset-hub-polkadot-rpc.dwellir.com
Batch to submit on Polkadot Collectives Chain:
https://dev.papi.how/extrinsics#data=0x2804043d003e0201cc1f0005010100a10f05082f0000060300884000a39796bee7924590ab788091638152a743aedcc657d89602c2e1c1f6a4c9df24010a000000&networkId=polkadot_collectives&endpoint=wss%3A%2F%2Fpolkadot-collectives-rpc.polkadot.io
```
Fellowship hash: 0x073e7c20f95157ee30d8addadb4a9ad2bd9ca1a07b05302b901bd13c43ab5e5f
Referenda hash: 0xb023cbd53b28566620e83545867fb15b17d48684fc30bb03393146cef5d063a8
Preimage hash: 0x6c19d9be03b9c26bea09eff0169f5e52f6da4beda7bbf9057eea9c33b4281c4b
```bash
npx github:karolk91/polkadot-referenda-tester test \
--governance-chain-url ws://localhost:8001 \
--fellowship-chain-url ws://localhost:8000 \
--additional-chains ws://localhost:8002 \
--referendum 1828 \
--fellowship 460 \
--no-cleanup
```
Check localhost IPs and ports for Events and workplan:
