Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 78 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,78 @@
## [0.11.0] - 2021-07-20

### IMPORTANT
**Please upgrade your node as SOON as possible!! Otherwise, your node might not sync the new blocks after enacting runtime.**
**请尽快升级您的节点!!否则在 Runtime 升级后,您的节点将有可能不会同步新的区块。**

#### Upgrade Window Period - 升级窗口期
- Crab: Now ~ UTC 07-24-2021
- Darwinia: Now ~ UTC 07-28-2021

#### Breaking Change(s)
- [Use host max log level when initializing the `RuntimeLogger`](https://github.com/paritytech/substrate/pull/8655), which introduced a new host function, which will be a breaking change once the corresponding runtime is enacted.

Comment thread
aurexav marked this conversation as resolved.
### Darwinia 0.11.0

| Chain | Runtime Spec Version |
| :------: | :------------------: |
| Darwinia | 1100 |
| Crab | 1100 |

### Boot Flag

#### Darwinia
**Run with `--chain darwinia` or leave it empty to participate in Darwinia.**
**使用 `--chain darwinia` 或不填写,参与到 Darwinia 网络。**

#### Crab
**Run with `--chain crab` to participate in Crab.**
**使用 `--chain crab` ,参与到 Crab 网络。**

### Resource

#### Binary
| | Arch | glibc (at least) | llvm (at least) | pre-built |
| :-----------: | :----: | :--------------: | :-------------: | :-------: |
| General Linux | x86_64 | 2.17 | 3.8 | ✔︎ |

#### Docker
```docker
docker pull quay.io/darwinia-network/darwinia:v0.11.0
```

### Change Log

#### Update(s)
- Substrate Updates [C 604](https://github.com/darwinia-network/darwinia-common/pull/604)
- Only For Darwinia Developers [C 19](https://github.com/darwinia-network/substrate-update-tracking/issues/19), [T 12](https://github.com/darwinia-network/substrate-update-tracking/issues/12), [T 15](https://github.com/darwinia-network/substrate-update-tracking/issues/15)
#### Fix(es)
- Prune `on-chain` MMR
- https://github.com/darwinia-network/darwinia-common/pull/673
- https://github.com/darwinia-network/darwinia-common/pull/689
- #675
Comment thread
aurexav marked this conversation as resolved.
#### Migration(s)
- https://github.com/paritytech/substrate/pull/7936 done (last time remaining migration)
- https://github.com/paritytech/substrate/pull/8414 pallet level migration
- https://github.com/paritytech/substrate/pull/8687 it's okay
- https://github.com/paritytech/substrate/pull/8663 it's okay we never modify the `Authorship` in `construct_runtime!`

---

#### Darwinia Custom
##### Runtime
- None
##### Migration(s)
- None

---

#### Crab Custom
##### Runtime
- Patch `evm-core` #662
##### Migration(s)
- Remove invalid schedule data #665


## [0.10.0] - 2021-04-24

### Darwinia 0.10.0
Expand All @@ -19,7 +94,7 @@
### Resource

#### Binary
| | Arch | glibc (at least) | llvm (at least) | pre-build |
| | Arch | glibc (at least) | llvm (at least) | pre-built |
| :-----------: | :-----: | :--------------: | :-------------: | :-------: |
| General Linux | x86_64 | 2.17 | 3.8 | ✔︎ |
| RaspberryPi | aarch64 | 2.23 | 3.8 | ✔︎ |
Expand Down Expand Up @@ -82,7 +157,7 @@ docker pull quay.io/darwinia-network/darwinia:v0.10.0
### Resource

#### Binary
| | Arch | glibc (at least) | llvm (at least) | pre-build |
| | Arch | glibc (at least) | llvm (at least) | pre-built |
| :-----------: | :-----: | :--------------: | :-------------: | :-------: |
| General Linux | x86_64 | 2.17 | 3.8 | ✔︎ |
| RaspberryPi | aarch64 | 2.23 | 3.8 | ✔︎ |
Expand Down Expand Up @@ -145,7 +220,7 @@ Some breaking changes in `ethash`/`parity-scale-codec v2.0.0`. So downgrade it.
### Resource

#### Binary
| | Arch | glibc (at least) | llvm (at least) | pre-build |
| | Arch | glibc (at least) | llvm (at least) | pre-built |
| :-----------: | :-----: | :--------------: | :-------------: | :-------: |
| General Linux | x86_64 | 2.17 | 3.8 | ✔︎ |
| RaspberryPi | aarch64 | 2.23 | 3.8 | ✔︎ |
Expand Down Expand Up @@ -180,6 +255,3 @@ docker pull quay.io/darwinia-network/darwinia:v0.9.5
##### Migration(s)
- Remove Old Migration
- Fix Crab Staking Ledger



18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[[bin]]
name = "darwinia"
Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-cli"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[package.metadata.wasm-pack.profile.release]
# `wasm-opt` has some problems on linux, see
Expand Down
2 changes: 1 addition & 1 deletion node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-service"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
2 changes: 1 addition & 1 deletion primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-primitives"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
2 changes: 1 addition & 1 deletion rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-rpc"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-runtime-common"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "crab-runtime"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "darwinia-runtime"
repository = "https://github.com/darwinia-network/darwinia/"
version = "0.10.0"
version = "0.11.0"

[dependencies]
# crates
Expand Down
14 changes: 12 additions & 2 deletions runtime/darwinia/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,28 +585,38 @@ impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
// --- substrate ---
use frame_support::migration;

log::info!("Moving storage `Instance0DarwiniaBalances` to `Balances`");
migration::move_pallet(b"Instance0DarwiniaBalances", b"Balances");
log::info!("Moving storage `Instance1DarwiniaBalances` to `Kton`");
migration::move_pallet(b"Instance1DarwiniaBalances", b"Kton");

// Tech.Comm to Instance2
log::info!("Moving storage `Instance1Collective` to `Instance2Collective`");
migration::move_pallet(b"Instance1Collective", b"Instance2Collective");
// Council to Instance1
log::info!("Moving storage `Instance0Collective` to `Instance1Collective`");
migration::move_pallet(b"Instance0Collective", b"Instance1Collective");

log::info!("Moving storage `Instance0Membership` to `Instance1Membership`");
migration::move_pallet(b"Instance0Membership", b"Instance1Membership");

log::info!("Moving storage `DarwiniaPhragmenElection` to `PhragmenElection`");
migration::move_pallet(b"DarwiniaPhragmenElection", b"PhragmenElection");

log::info!(
"Moving storage `Instance0DarwiniaRelayerGame` to `Instance1DarwiniaRelayerGame`"
);
migration::move_pallet(
b"Instance0DarwiniaRelayerGame",
b"Instance1DarwiniaRelayerGame",
);

log::info!("Moving storage `Instance0DarwiniaRelayAuthorities` to `Instance1DarwiniaRelayAuthorities`");
migration::move_pallet(
b"Instance0DarwiniaRelayAuthorities",
b"Instance1DarwiniaRelayAuthorities",
);

migration::move_pallet(b"DarwiniaPhragmenElection", b"PhragmenElection");

RuntimeBlockWeights::get().max_block
}
}