From 5c02c9a57896774e787fdcbeceba0a8cba6eb1ce Mon Sep 17 00:00:00 2001 From: EthanYuan Date: Tue, 29 Aug 2023 13:11:12 +0800 Subject: [PATCH] fix: update the RPC `generate_block` method comments. --- rpc/README.md | 14 ++------------ rpc/src/module/test.rs | 10 ++-------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/rpc/README.md b/rpc/README.md index 47a4ffc1c4..500cbed5f8 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -3182,19 +3182,9 @@ Response * `generate_block()` * result: [`H256`](#type-h256) -Generate block with block_assembler_config, process the block(with verification) - -and broadcast the block. - -###### Params - -* - `block_assembler_script` - specified block assembler script - - -* - `block_assembler_message` - specified block assembler message +Generate block(with verification) and broadcast the block. +Note that if called concurrently, it may return the hash of the same block. ###### Examples diff --git a/rpc/src/module/test.rs b/rpc/src/module/test.rs index 6bb82835cf..812c97fb41 100644 --- a/rpc/src/module/test.rs +++ b/rpc/src/module/test.rs @@ -140,15 +140,9 @@ pub trait IntegrationTestRpc { #[rpc(name = "truncate")] fn truncate(&self, target_tip_hash: H256) -> Result<()>; - /// Generate block with block_assembler_config, process the block(with verification) + /// Generate block(with verification) and broadcast the block. /// - /// and broadcast the block. - /// - /// ## Params - /// - /// * `block_assembler_script` - specified block assembler script - /// - /// * `block_assembler_message` - specified block assembler message + /// Note that if called concurrently, it may return the hash of the same block. /// /// ## Examples ///