From 84a62fb122fe1a353b30044afc8374b7b3949b5b Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 3 May 2023 19:10:17 +0200 Subject: [PATCH 1/2] Accept version 2 for Metadata_metadata --- light-base/src/json_rpc_service/background/state_chain.rs | 2 +- wasm-node/CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/light-base/src/json_rpc_service/background/state_chain.rs b/light-base/src/json_rpc_service/background/state_chain.rs index 304e2dc408..ebda08b331 100644 --- a/light-base/src/json_rpc_service/background/state_chain.rs +++ b/light-base/src/json_rpc_service/background/state_chain.rs @@ -1214,7 +1214,7 @@ impl Background { .runtime_call( &block_hash, "Metadata", - 1..=1, + 1..=2, "Metadata_metadata", iter::empty::>(), 3, diff --git a/wasm-node/CHANGELOG.md b/wasm-node/CHANGELOG.md index b98244fd81..788cc2ba23 100644 --- a/wasm-node/CHANGELOG.md +++ b/wasm-node/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Added + +- Support v2 of the `Metadata` runtime API. + ### Changed - The size of the read buffer of TCP connections on Deno has been increased from 1kiB to 32kiB. This should improve the performance by reducing the number of function calls. ([#501](https://github.com/smol-dot/smoldot/pull/501)) From c30543f0fdd54c6f6f14e5877b2304c7e42fae61 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 3 May 2023 19:10:43 +0200 Subject: [PATCH 2/2] PR link --- wasm-node/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm-node/CHANGELOG.md b/wasm-node/CHANGELOG.md index 788cc2ba23..a7dbfff6bf 100644 --- a/wasm-node/CHANGELOG.md +++ b/wasm-node/CHANGELOG.md @@ -4,7 +4,7 @@ ### Added -- Support v2 of the `Metadata` runtime API. +- Support v2 of the `Metadata` runtime API. ([#514](https://github.com/smol-dot/smoldot/pull/514)) ### Changed