fix issue with compilation when 'slow-blocks' feature enabled (#10585)

change call to a `header()` function to the field `header`
This commit is contained in:
Andrew Plaza 2019-04-11 03:02:39 -07:00 committed by Andrew Jones
parent 08f0573fb5
commit 9e2b2b361c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}