@@ -113,8 +113,8 @@ func isShanghai(blockTimestamp uint64, shanghaiTimestamp *big.Int) bool {
113113 return shanghaiTimestamp != nil && big .NewInt (int64 (blockTimestamp )).Cmp (shanghaiTimestamp ) >= 0
114114}
115115
116- func isSharding (blockTimestamp uint64 , shardingTimestamp * big.Int ) bool {
117- return shardingTimestamp != nil && big .NewInt (int64 (blockTimestamp )).Cmp (shardingTimestamp ) >= 0
116+ func isCancun (blockTimestamp uint64 , cancunTimestamp * big.Int ) bool {
117+ return cancunTimestamp != nil && big .NewInt (int64 (blockTimestamp )).Cmp (cancunTimestamp ) >= 0
118118}
119119
120120func NewCLMocker (t * hivesim.T , slotsToSafe , slotsToFinalized , safeSlotsToImportOptimistically * big.Int , forkConfig globals.ForkConfig ) * CLMocker {
@@ -369,7 +369,7 @@ func (cl *CLMocker) GetNextPayload() {
369369 var err error
370370 ctx , cancel := context .WithTimeout (cl .TestContext , globals .RPCTimeout )
371371 defer cancel ()
372- if isSharding (cl .LatestPayloadAttributes .Timestamp , cl .ShardingForkTimestamp ) {
372+ if isCancun (cl .LatestPayloadAttributes .Timestamp , cl .CancunTimestamp ) {
373373 cl .LatestPayloadBuilt , cl .LatestBlockValue , cl .LatestBlobBundle , err = cl .NextBlockProducer .GetPayloadV3 (ctx , cl .NextPayloadID )
374374 } else if isShanghai (cl .LatestPayloadAttributes .Timestamp , cl .ShanghaiTimestamp ) {
375375 cl .LatestPayloadBuilt , cl .LatestBlockValue , err = cl .NextBlockProducer .GetPayloadV2 (ctx , cl .NextPayloadID )
@@ -619,7 +619,7 @@ func (cl *CLMocker) BroadcastNewPayload(payload *api.ExecutableData) []ExecutePa
619619 execPayloadResp api.PayloadStatusV1
620620 err error
621621 )
622- if isSharding (payload .Timestamp , cl .ShardingForkTimestamp ) {
622+ if isCancun (payload .Timestamp , cl .CancunTimestamp ) {
623623 execPayloadResp , err = ec .NewPayloadV3 (ctx , payload )
624624 } else if isShanghai (payload .Timestamp , cl .ShanghaiTimestamp ) {
625625 execPayloadResp , err = ec .NewPayloadV2 (ctx , payload )
0 commit comments