From 9d71f2054ef7ff2af5308fa6887ee4501444577d Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Thu, 9 Nov 2023 14:05:32 +1300 Subject: [PATCH 1/6] add force debug feature --- Cargo.lock | 2 ++ relay/kusama/Cargo.toml | 4 ++++ relay/polkadot/Cargo.toml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index c9865981cf..2b9a48fe43 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7896,6 +7896,7 @@ dependencies = [ "sp-consensus-babe", "sp-consensus-beefy", "sp-core", + "sp-debug-derive", "sp-inherents", "sp-io", "sp-keyring", @@ -11196,6 +11197,7 @@ dependencies = [ "sp-consensus-babe", "sp-consensus-beefy", "sp-core", + "sp-debug-derive", "sp-inherents", "sp-io", "sp-keyring", diff --git a/relay/kusama/Cargo.toml b/relay/kusama/Cargo.toml index 7911a54974..0589463313 100644 --- a/relay/kusama/Cargo.toml +++ b/relay/kusama/Cargo.toml @@ -113,6 +113,8 @@ xcm = { package = "staging-xcm", default-features = false , version = "2.0.1" } xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "2.0.0" } xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "2.0.1" } +sp-debug-derive = { default-features = false , version = "10.0.0" } + [dev-dependencies] tiny-keccak = { version = "2.0.2", features = ["keccak"] } keyring = { package = "sp-keyring", version = "26.0.0" } @@ -350,3 +352,5 @@ on-chain-release-build = [ "sp-api/disable-logging" ] fast-runtime = [] runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] + +force-debug = [ "sp-debug-derive/force-debug" ] diff --git a/relay/polkadot/Cargo.toml b/relay/polkadot/Cargo.toml index 3c72f30e09..964bcb5e95 100644 --- a/relay/polkadot/Cargo.toml +++ b/relay/polkadot/Cargo.toml @@ -104,6 +104,8 @@ xcm = { package = "staging-xcm", default-features = false , version = "2.0.1" } xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "2.0.0" } xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "2.0.1" } +sp-debug-derive = { default-features = false , version = "10.0.0" } + [dev-dependencies] hex-literal = "0.4.1" tiny-keccak = { version = "2.0.2", features = ["keccak"] } @@ -320,3 +322,5 @@ on-chain-release-build = [ "sp-api/disable-logging" ] fast-runtime = [] runtime-metrics = [ "runtime-parachains/runtime-metrics", "sp-io/with-tracing" ] + +force-debug = [ "sp-debug-derive/force-debug" ] From e546e81f9d70a1c5c88e2685850825d037bb9961 Mon Sep 17 00:00:00 2001 From: Bryan Chen Date: Thu, 28 Dec 2023 11:35:57 +1300 Subject: [PATCH 2/6] add std --- relay/kusama/Cargo.toml | 1 + relay/polkadot/Cargo.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/relay/kusama/Cargo.toml b/relay/kusama/Cargo.toml index 485128d569..32a9f1c3c1 100644 --- a/relay/kusama/Cargo.toml +++ b/relay/kusama/Cargo.toml @@ -218,6 +218,7 @@ std = [ "sp-application-crypto/std", "sp-arithmetic/std", "sp-core/std", + "sp-debug-derive/std", "sp-genesis-builder/std", "sp-io/std", "sp-mmr-primitives/std", diff --git a/relay/polkadot/Cargo.toml b/relay/polkadot/Cargo.toml index ad2b396d62..90419176b9 100644 --- a/relay/polkadot/Cargo.toml +++ b/relay/polkadot/Cargo.toml @@ -211,6 +211,7 @@ std = [ "sp-application-crypto/std", "sp-arithmetic/std", "sp-core/std", + "sp-debug-derive/std", "sp-genesis-builder/std", "sp-io/std", "sp-mmr-primitives/std", From 16e808ef3c9ddbc6247d7fb78c981a0c260dec18 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Sat, 30 Dec 2023 14:18:33 +1300 Subject: [PATCH 3/6] Update relay/polkadot/Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Köcher --- relay/polkadot/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/polkadot/Cargo.toml b/relay/polkadot/Cargo.toml index 90419176b9..95febdf5c0 100644 --- a/relay/polkadot/Cargo.toml +++ b/relay/polkadot/Cargo.toml @@ -111,7 +111,7 @@ xcm = { package = "staging-xcm", default-features = false , version = "4.0.0" } xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "4.0.0" } xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "4.0.0" } -sp-debug-derive = { default-features = false , version = "10.0.0" } +sp-debug-derive = { default-features = false, version = "10.0.0" } [dev-dependencies] hex-literal = "0.4.1" From c02b0c469b9d53b466f141def813288a66d6f047 Mon Sep 17 00:00:00 2001 From: Xiliang Chen Date: Sat, 30 Dec 2023 14:18:38 +1300 Subject: [PATCH 4/6] Update relay/kusama/Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Köcher --- relay/kusama/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/kusama/Cargo.toml b/relay/kusama/Cargo.toml index 32a9f1c3c1..fa3c43665f 100644 --- a/relay/kusama/Cargo.toml +++ b/relay/kusama/Cargo.toml @@ -115,7 +115,7 @@ xcm = { package = "staging-xcm", default-features = false , version = "4.0.0" } xcm-executor = { package = "staging-xcm-executor", default-features = false , version = "4.0.0" } xcm-builder = { package = "staging-xcm-builder", default-features = false , version = "4.0.0" } -sp-debug-derive = { default-features = false , version = "10.0.0" } +sp-debug-derive = { default-features = false, version = "10.0.0" } [dev-dependencies] tiny-keccak = { version = "2.0.2", features = ["keccak"] } From 79009166b339cbcb0117677800d0a5acf557fbf5 Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Fri, 26 Jan 2024 12:45:26 +0100 Subject: [PATCH 5/6] Update lockfile Signed-off-by: Oliver Tale-Yazdi --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9384268db4..22eb85231b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11705,7 +11705,7 @@ checksum = "b4b235a0ad7124d58e6f0a728c8354da5b185b77bcf18b131b3a480cdaa23d95" dependencies = [ "proc-macro2", "quote", - "syn 2.0.38", + "syn 2.0.48", ] [[package]] From 32a43894ce0f8a97517e2d9cde7400f4902c89a9 Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Fri, 26 Jan 2024 12:53:21 +0100 Subject: [PATCH 6/6] Update CHANGELOG Signed-off-by: Oliver Tale-Yazdi --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d672fa934b..dd8e17b384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added - Introduce chain spec generator ([polkadot-fellows/runtimes#127](https://github.com/polkadot-fellows/runtimes/pull/127)) -- Add [Encointer](https://encointer.org) system parachain runtime, completing [RFC22](https://github.com/polkadot-fellows/RFCs/blob/main/text/0022-adopt-encointer-runtime.md) ([polkadot-fellows/runtimes#80](https://github.com/polkadot-fellows/runtimes/pull/80)) +- Add [Encointer](https://encointer.org) system parachain runtime, completing [RFC22](https://github.com/polkadot-fellows/RFCs/blob/main/text/ +0022-adopt-encointer-runtime.md) ([polkadot-fellows/runtimes#80](https://github.com/polkadot-fellows/runtimes/pull/80)) +- Feature for enabling debug prints in the Polkadot and Kusama runtime ([polkadot-fellows/runtimes#85](https://github.com/polkadot-fellows/runtimes/pull/85)) ### Changed