From 9e2b2b361cc9caecaf9e90d451218c5e10050a4f Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Thu, 11 Apr 2019 03:02:39 -0700 Subject: [PATCH] fix issue with compilation when 'slow-blocks' feature enabled (#10585) change call to a `header()` function to the field `header` --- ethcore/src/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/block.rs b/ethcore/src/block.rs index 56cfc1c4c..613929f4d 100644 --- a/ethcore/src/block.rs +++ b/ethcore/src/block.rs @@ -271,7 +271,7 @@ impl<'x> OpenBlock<'x> { let took = start.elapsed(); let took_ms = took.as_secs() * 1000 + took.subsec_nanos() as u64 / 1000000; if took > time::Duration::from_millis(slow_tx) { - warn!("Heavy ({} ms) transaction in block {:?}: {:?}", took_ms, self.block.header().number(), hash); + warn!("Heavy ({} ms) transaction in block {:?}: {:?}", took_ms, self.block.header.number(), hash); } debug!(target: "tx", "Transaction {:?} took: {} ms", hash, took_ms); }