@@ -16,11 +16,9 @@ import (
1616 mockSync "github.com/OffchainLabs/prysm/v7/beacon-chain/sync/initial-sync/testing"
1717 "github.com/OffchainLabs/prysm/v7/config/params"
1818 "github.com/OffchainLabs/prysm/v7/consensus-types/interfaces"
19- "github.com/OffchainLabs/prysm/v7/consensus-types/primitives"
2019 "github.com/OffchainLabs/prysm/v7/runtime/version"
2120 "github.com/OffchainLabs/prysm/v7/testing/require"
2221 "github.com/OffchainLabs/prysm/v7/testing/util"
23- "github.com/OffchainLabs/prysm/v7/time/slots"
2422 pubsub "github.com/libp2p/go-libp2p-pubsub"
2523 pb "github.com/libp2p/go-libp2p-pubsub/pb"
2624)
@@ -83,7 +81,7 @@ func TestValidateLightClientOptimisticUpdate(t *testing.T) {
8381 },
8482 {
8583 name : "not enough time passed" ,
86- genesisDrift : - int (math .Ceil (float64 (slots . ComponentDuration ( primitives . BP (params .BeaconConfig ().SyncMessageDueBPS ) )) / float64 (time .Second ))),
84+ genesisDrift : - int (math .Ceil (float64 (params . BeaconConfig (). SlotComponentDuration (params .BeaconConfig ().SyncMessageDueBPS )) / float64 (time .Second ))),
8785 oldUpdateOptions : []util.LightClientOption {},
8886 newUpdateOptions : []util.LightClientOption {},
8987 expectedResult : pubsub .ValidationIgnore ,
@@ -209,7 +207,7 @@ func TestValidateLightClientFinalityUpdate(t *testing.T) {
209207 },
210208 {
211209 name : "not enough time passed" ,
212- genesisDrift : - int (math .Ceil (float64 (slots . ComponentDuration ( primitives . BP (params .BeaconConfig ().SyncMessageDueBPS ) )) / float64 (time .Second ))),
210+ genesisDrift : - int (math .Ceil (float64 (params . BeaconConfig (). SlotComponentDuration (params .BeaconConfig ().SyncMessageDueBPS )) / float64 (time .Second ))),
213211 oldUpdateOptions : []util.LightClientOption {},
214212 newUpdateOptions : []util.LightClientOption {},
215213 expectedResult : pubsub .ValidationIgnore ,
0 commit comments