rename build.{BlockDelay=>BlockDelaySecs}.

Since this global is not typed as a time.Duration,
rather as an int, it makes sense to clarify the unit.
This commit is contained in:
Raúl Kripalani
2020-06-30 14:26:49 +01:00
parent 612b2fe9d7
commit 4f9c907248
19 changed files with 31 additions and 31 deletions
+2 -2
View File
@@ -123,6 +123,6 @@ func RandomBeacon(p RandomBeaconParams, _ dtypes.AfterGenesisSet) (beacon.Random
return nil, err
}
//return beacon.NewMockBeacon(build.BlockDelay * time.Second)
return drand.NewDrandBeacon(gen.Timestamp, build.BlockDelay, p.PubSub, p.DrandConfig)
//return beacon.NewMockBeacon(build.BlockDelaySecs * time.Second)
return drand.NewDrandBeacon(gen.Timestamp, build.BlockDelaySecs, p.PubSub, p.DrandConfig)
}
+1 -1
View File
@@ -8,5 +8,5 @@ import (
)
func RandomBeacon() (beacon.RandomBeacon, error) {
return beacon.NewMockBeacon(time.Duration(build.BlockDelay) * time.Second), nil
return beacon.NewMockBeacon(time.Duration(build.BlockDelaySecs) * time.Second), nil
}