2020-04-15 14:13:20 +00:00
|
|
|
package testing
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/lotus/build"
|
|
|
|
"github.com/filecoin-project/lotus/chain/beacon"
|
|
|
|
)
|
|
|
|
|
2020-09-09 18:37:12 +00:00
|
|
|
func RandomBeacon() (beacon.Schedule, error) {
|
|
|
|
return beacon.Schedule{
|
|
|
|
{Start: 0,
|
|
|
|
Beacon: beacon.NewMockBeacon(time.Duration(build.BlockDelaySecs) * time.Second),
|
|
|
|
}}, nil
|
2020-04-15 14:13:20 +00:00
|
|
|
}
|