Make order of operations clearer
This commit is contained in:
parent
ec6ef93b7b
commit
b6ce509363
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue