rename get_header to block_header by convention

This commit is contained in:
Robert Habermeier
2017-02-08 20:22:41 +01:00
parent 0246d5c734
commit 028dbe5fe2
4 changed files with 16 additions and 16 deletions

View File

@@ -88,7 +88,7 @@ impl EthClient {
/// Get a block header from the on demand service or client, or error.
fn header(&self, id: BlockId) -> BoxFuture<Option<encoded::Header>, Error> {
if let Some(h) = self.client.get_header(id) {
if let Some(h) = self.client.block_header(id) {
return future::ok(Some(h)).boxed()
}