diff --git a/ethcore/src/client/test_client.rs b/ethcore/src/client/test_client.rs index 5f6bfcb9779..c3d8c127b08 100644 --- a/ethcore/src/client/test_client.rs +++ b/ethcore/src/client/test_client.rs @@ -242,6 +242,7 @@ impl TestBlockChainClient { *self.error_on_logs.write() = val; } + /// Add a block to test client. pub fn add_block(&self, with: EachBlockWith, hook: F) where F: Fn(BlockHeader) -> BlockHeader { @@ -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);