Make order of operations clearer

This commit is contained in:
teor 2020-11-26 12:14:30 +10:00
parent ec6ef93b7b
commit b6ce509363
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ impl NetworkUpgrade {
/// ///
/// `AveragingWindowTimespan` from the Zcash specification. /// `AveragingWindowTimespan` from the Zcash specification.
pub fn averaging_window_timespan(&self) -> Duration { pub fn averaging_window_timespan(&self) -> Duration {
self.target_spacing() * POW_AVERAGING_WINDOW as _ self.target_spacing() * (POW_AVERAGING_WINDOW as _)
} }
/// Returns the averaging window timespan for `network` and `height`. /// Returns the averaging window timespan for `network` and `height`.