Skip to content

Commit

Permalink
Merge pull request nervosnetwork#4124 from EthanYuan/fix-rpc-doc
Browse files Browse the repository at this point in the history
fix: update the RPC `generate_block` method comments
  • Loading branch information
doitian authored Aug 29, 2023
2 parents 7db3976 + 5c02c9a commit e90241b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
14 changes: 2 additions & 12 deletions rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 2 additions & 8 deletions rpc/src/module/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit e90241b

Please sign in to comment.