mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
libp2pcore "github.com/libp2p/go-libp2p/core"
|
||||
"github.com/prysmaticlabs/prysm/v3/beacon-chain/p2p"
|
||||
types "github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
"github.com/prysmaticlabs/prysm/v3/network/forks"
|
||||
pb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/v3/time/slots"
|
||||
@@ -27,7 +27,7 @@ func (c *client) pingHandler(_ context.Context, _ interface{}, stream libp2pcore
|
||||
if _, err := stream.Write([]byte{responseCodeSuccess}); err != nil {
|
||||
return err
|
||||
}
|
||||
sq := types.SSZUint64(c.MetadataSeq())
|
||||
sq := primitives.SSZUint64(c.MetadataSeq())
|
||||
if _, err := c.Encoding().EncodeWithMaxLength(stream, &sq); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v3/beacon-chain/forkchoice"
|
||||
types "github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/v3/time/slots"
|
||||
)
|
||||
@@ -31,6 +31,6 @@ func (m *mockChain) GenesisTime() time.Time {
|
||||
return m.genesisTime
|
||||
}
|
||||
|
||||
func (m *mockChain) CurrentSlot() types.Slot {
|
||||
func (m *mockChain) CurrentSlot() primitives.Slot {
|
||||
return slots.SinceGenesis(m.genesisTime)
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/prysmaticlabs/prysm/v3/cmd"
|
||||
"github.com/prysmaticlabs/prysm/v3/config/params"
|
||||
consensusblocks "github.com/prysmaticlabs/prysm/v3/consensus-types/blocks"
|
||||
types "github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
||||
pb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/v3/time/slots"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -139,8 +139,8 @@ func cliActionRequestBlocks(cliCtx *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
startSlot := types.Slot(requestBlocksFlags.StartSlot)
|
||||
var headSlot *types.Slot
|
||||
startSlot := primitives.Slot(requestBlocksFlags.StartSlot)
|
||||
var headSlot *primitives.Slot
|
||||
if startSlot == 0 {
|
||||
headResp, err := c.beaconClient.GetChainHead(ctx, &emptypb.Empty{})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user