From e4fc5a21f7b71724906af630259cded84d6993c3 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 4 Oct 2022 16:01:21 +0200 Subject: [PATCH] Update field names after rename in spec (#2812) I had never backported https://github.com/paritytech/json-rpc-interface-spec/pull/18 This is what this PR does. --- bin/wasm-node/CHANGELOG.md | 1 + src/json_rpc/methods.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/wasm-node/CHANGELOG.md b/bin/wasm-node/CHANGELOG.md index b9feba2265..1903706431 100644 --- a/bin/wasm-node/CHANGELOG.md +++ b/bin/wasm-node/CHANGELOG.md @@ -7,6 +7,7 @@ - Syncing no longer stalls if the gap between the finalized and latest block is more than 100 blocks. ([#2801](https://github.com/paritytech/smoldot/pull/2801)) - No longer silently discard justifications when receive a block from the network that was already known locally. ([#2800](https://github.com/paritytech/smoldot/pull/2800)) - CPU-heavy operations such as verifying finality proofs or compiling the runtime will now better respect the CPU rate limit. ([#2803](https://github.com/paritytech/smoldot/pull/2803)) +- Fix the `finalizedBlockHashes` and `prunedBlockHashes` fields having wrong names in `chainHead_unstable_followEvent` events. ([#2812](https://github.com/paritytech/smoldot/pull/2812)) ## 0.7.0 - 2022-09-28 diff --git a/src/json_rpc/methods.rs b/src/json_rpc/methods.rs index 235e81d2fb..19ae311491 100644 --- a/src/json_rpc/methods.rs +++ b/src/json_rpc/methods.rs @@ -629,9 +629,9 @@ pub enum FollowEvent<'a> { }, #[serde(rename = "finalized")] Finalized { - #[serde(rename = "finalizedBlocksHashes")] + #[serde(rename = "finalizedBlockHashes")] finalized_blocks_hashes: Vec, - #[serde(rename = "prunedBlocksHashes")] + #[serde(rename = "prunedBlockHashes")] pruned_blocks_hashes: Vec, }, #[serde(rename = "stop")]