From 8d6ce332ed625b2bfd87704f37a6d6cad46b34a5 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Sat, 26 Oct 2024 21:41:13 +0200 Subject: [PATCH] add more comments --- sidechain/rpc-handler/src/direct_top_pool_api.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sidechain/rpc-handler/src/direct_top_pool_api.rs b/sidechain/rpc-handler/src/direct_top_pool_api.rs index c1291d53b..6b6472625 100644 --- a/sidechain/rpc-handler/src/direct_top_pool_api.rs +++ b/sidechain/rpc-handler/src/direct_top_pool_api.rs @@ -60,6 +60,9 @@ pub fn add_top_pool_direct_rpc_methods( ]) .unwrap_or_else(|e| error!("failed to update prometheus metric: {:?}", e)); let json_value = match author_submit_extrinsic_inner(local_author.clone(), params) { + // Only return hash to support JSON RPC 2.0. + // Other methods will follow this pattern when + // we tackle #1624. Ok(hash_value) => hash_value.to_hex(), Err(error) => compute_hex_encoded_return_error(error.as_str()), };