4f9c907248
Since this global is not typed as a time.Duration, rather as an int, it makes sense to clarify the unit.
13 lines
269 B
Go
13 lines
269 B
Go
package testing
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
"github.com/filecoin-project/lotus/chain/beacon"
|
|
)
|
|
|
|
func RandomBeacon() (beacon.RandomBeacon, error) {
|
|
return beacon.NewMockBeacon(time.Duration(build.BlockDelaySecs) * time.Second), nil
|
|
}
|