Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
tests: Add missing method doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimpo committed Oct 1, 2018
1 parent 78a0a1d commit 20f71b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethcore/src/client/test_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ impl TestBlockChainClient {
*self.error_on_logs.write() = val;
}

/// Add a block to test client.
pub fn add_block<F>(&self, with: EachBlockWith, hook: F)
where F: Fn(BlockHeader) -> BlockHeader
{
Expand Down Expand Up @@ -298,7 +299,7 @@ impl TestBlockChainClient {
self.import_block(unverified).unwrap();
}

/// Add blocks to test client.
/// Add a sequence of blocks to test client.
pub fn add_blocks(&self, count: usize, with: EachBlockWith) {
for _ in 0..count {
self.add_block(with, |header| header);
Expand Down

0 comments on commit 20f71b3

Please sign in to comment.