From 42b063714c5e5df149b8f6432a3a26bdcdbd0b01 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:43:44 +0800 Subject: [PATCH] chore: fix lint --- pkg/beacon/drand_test.go | 4 ++-- pkg/config/config.go | 2 +- pkg/testhelpers/test_daemon.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/beacon/drand_test.go b/pkg/beacon/drand_test.go index 7dde7d2b14..e73a7bb6c1 100644 --- a/pkg/beacon/drand_test.go +++ b/pkg/beacon/drand_test.go @@ -44,9 +44,9 @@ func TestMaxBeaconRoundForEpoch(t *testing.T) { func TestQuicknetIsChained(t *testing.T) { tf.UnitTest(t) - todayTs := uint64(1652222222) + todayTS := uint64(1652222222) drandCfg := config.DrandConfigs[config.DrandQuicknet] - db, err := NewDrandBeacon(todayTs, config.NewDefaultConfig().NetworkParams.BlockDelay, drandCfg) + db, err := NewDrandBeacon(todayTS, config.NewDefaultConfig().NetworkParams.BlockDelay, drandCfg) assert.NoError(t, err) assert.False(t, db.IsChained()) } diff --git a/pkg/config/config.go b/pkg/config/config.go index eb4d7a5491..da8eaf0372 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -390,7 +390,7 @@ func newDefaultNetworkParamsConfig() *NetworkParamsConfig { abi.RegisteredSealProof_StackedDrg32GiBV1, abi.RegisteredSealProof_StackedDrg64GiBV1, }, - DrandSchedule: map[abi.ChainEpoch]DrandEnum{0: 5, -1: 1}, + DrandSchedule: map[abi.ChainEpoch]DrandEnum{0: DrandMainnet, defaultParams.UpgradePhoenixHeight: DrandQuicknet}, ForkUpgradeParam: &defaultParams, PropagationDelaySecs: 10, AllowableClockDriftSecs: 1, diff --git a/pkg/testhelpers/test_daemon.go b/pkg/testhelpers/test_daemon.go index 5f05eff151..6e7942d2ec 100644 --- a/pkg/testhelpers/test_daemon.go +++ b/pkg/testhelpers/test_daemon.go @@ -396,9 +396,9 @@ func (td *TestDaemon) WaitForAPI() error { if err == nil { return nil } - time.Sleep(time.Millisecond * 100) + time.Sleep(time.Second * 20) } - return fmt.Errorf("filecoin node failed to come online in given time period (10 seconds); last err = %s", err) + return fmt.Errorf("filecoin node failed to come online in given time period (20 seconds); last err = %s", err) } // CreateStorageMinerAddr issues a new message to the network, mines the message