Skip to content

Commit

Permalink
Update field names after rename in spec (#2812)
Browse files Browse the repository at this point in the history
I had never backported
paritytech/json-rpc-interface-spec#18
This is what this PR does.
  • Loading branch information
tomaka authored Oct 4, 2022
1 parent d6b0e94 commit e4fc5a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/json_rpc/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,9 @@ pub enum FollowEvent<'a> {
},
#[serde(rename = "finalized")]
Finalized {
#[serde(rename = "finalizedBlocksHashes")]
#[serde(rename = "finalizedBlockHashes")]
finalized_blocks_hashes: Vec<HashHexString>,
#[serde(rename = "prunedBlocksHashes")]
#[serde(rename = "prunedBlockHashes")]
pruned_blocks_hashes: Vec<HashHexString>,
},
#[serde(rename = "stop")]
Expand Down

0 comments on commit e4fc5a2

Please sign in to comment.