Skip to content

Commit

Permalink
Update dependencies for deneb beta 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Dec 7, 2023
1 parent 32a34fb commit 841ba8e
Show file tree
Hide file tree
Showing 44 changed files with 205 additions and 504 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.34.0:
- update dependencies
- use Capella fork for all exits
- support Deneb beta 5

1.33.2:
- fix windows build
Expand Down
6 changes: 3 additions & 3 deletions beacon/chaininfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ func ObtainChainInfoFromNode(ctx context.Context,
}

// Genesis validators root obtained from beacon node.
genesisResponse, err := consensusClient.(consensusclient.GenesisProvider).Genesis(ctx)
genesisResponse, err := consensusClient.(consensusclient.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain genesis information")
}
res.GenesisValidatorsRoot = genesisResponse.Data.GenesisValidatorsRoot

// Fetch the genesis fork version from the specification.
specResponse, err := consensusClient.(consensusclient.SpecProvider).Spec(ctx)
specResponse, err := consensusClient.(consensusclient.SpecProvider).Spec(ctx, &api.SpecOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain spec")
}
Expand All @@ -304,7 +304,7 @@ func ObtainChainInfoFromNode(ctx context.Context,
}

// Fetch the current fork version from the fork schedule.
forkScheduleResponse, err := consensusClient.(consensusclient.ForkScheduleProvider).ForkSchedule(ctx)
forkScheduleResponse, err := consensusClient.(consensusclient.ForkScheduleProvider).ForkSchedule(ctx, &api.ForkScheduleOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain fork schedule")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/attester/duties/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func input(ctx context.Context) (*dataIn, error) {

data.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(data.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(data.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(data.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return nil, errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/attester/duties/process_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestProcess(t *testing.T) {

chainTime, err := standardchaintime.New(context.Background(),
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
)
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion cmd/attester/inclusion/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func input(ctx context.Context) (*dataIn, error) {

data.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(data.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(data.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(data.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return nil, errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/attester/inclusion/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {

data.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(data.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(data.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(data.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return nil, errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/attester/inclusion/process_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestProcess(t *testing.T) {

chainTime, err := standardchaintime.New(context.Background(),
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
)
require.NoError(t, err)

Expand Down
4 changes: 2 additions & 2 deletions cmd/block/analyze/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand All @@ -316,7 +316,7 @@ func (c *command) setup(ctx context.Context) error {
return errors.New("connection does not provide spec information")
}

specResponse, err := specProvider.Spec(ctx)
specResponse, err := specProvider.Spec(ctx, &api.SpecOpts{})
if err != nil {
return errors.Wrap(err, "failed to obtain spec")
}
Expand Down
7 changes: 3 additions & 4 deletions cmd/block/info/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func outputBlockSyncAggregate(ctx context.Context, eth2Client eth2client.Service
if verbose {
specProvider, isProvider := eth2Client.(eth2client.SpecProvider)
if isProvider {
specResponse, err := specProvider.Spec(ctx)
specResponse, err := specProvider.Spec(ctx, &api.SpecOpts{})
if err == nil {
slotsPerEpoch := specResponse.Data["SLOTS_PER_EPOCH"].(uint64)

Expand Down Expand Up @@ -916,7 +916,7 @@ func outputDenebBlobInfo(_ context.Context,
}

if !verbose {
return fmt.Sprintf("Blobs: %d\n", len(body.BlobKzgCommitments)), nil
return fmt.Sprintf("Blobs: %d\n", len(body.BlobKZGCommitments)), nil
}

res := strings.Builder{}
Expand All @@ -926,8 +926,7 @@ func outputDenebBlobInfo(_ context.Context,
res.WriteString("Blobs\n")
}
res.WriteString(fmt.Sprintf(" Index: %d\n", blob.Index))
res.WriteString(fmt.Sprintf(" KZG commitment: %s\n", blob.KzgCommitment.String()))
res.WriteString(fmt.Sprintf(" KZG proof: %s\n", blob.KzgProof.String()))
res.WriteString(fmt.Sprintf(" KZG commitment: %s\n", body.BlobKZGCommitments[i].String()))
}

return res.String(), nil
Expand Down
6 changes: 3 additions & 3 deletions cmd/block/info/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
eth2Client: data.eth2Client,
}

specResponse, err := results.eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := results.eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to connect to obtain configuration information")
}
genesisResponse, err := results.eth2Client.(eth2client.GenesisProvider).Genesis(ctx)
genesisResponse, err := results.eth2Client.(eth2client.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to connect to obtain genesis information")
}
Expand Down Expand Up @@ -345,7 +345,7 @@ func timeToBlockID(ctx context.Context, eth2Client eth2client.Service, input str
// Assume timestamp.
chainTime, err := standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return "", errors.Wrap(err, "failed to set up chaintime service")
Expand Down
4 changes: 2 additions & 2 deletions cmd/chain/eth1votes/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand All @@ -150,7 +150,7 @@ func (c *command) setup(ctx context.Context) error {
return errors.New("connection does not provide spec information")
}

specResponse, err := specProvider.Spec(ctx)
specResponse, err := specProvider.Spec(ctx, &api.SpecOpts{})
if err != nil {
return errors.Wrap(err, "failed to obtain spec")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/chain/queues/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/chain/time/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {

chainTime, err := standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return nil, errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/chain/verify/signedcontributionandproof/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (c *command) isAggregator(ctx context.Context) (bool, error) {
if !isProvider {
return false, errors.New("connection does not provide spec information")
}
specResponse, err := specProvider.Spec(ctx)
specResponse, err := specProvider.Spec(ctx, &api.SpecOpts{})
if err != nil {
return false, errors.Wrap(err, "failed to obtain spec information")
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/chaininfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ In quiet mode this will return 0 if the chain information can be obtained, other
})
errCheck(err, "Failed to connect to Ethereum 2 beacon node")

specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
errCheck(err, "Failed to obtain beacon chain specification")

genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx)
genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
errCheck(err, "Failed to obtain beacon chain genesis")

forkResponse, err := eth2Client.(eth2client.ForkProvider).Fork(ctx, &api.ForkOpts{State: "head"})
Expand Down
3 changes: 2 additions & 1 deletion cmd/chainspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"time"

eth2client "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
"github.com/attestantio/go-eth2-client/spec/phase0"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand All @@ -47,7 +48,7 @@ In quiet mode this will return 0 if the chain specification can be obtained, oth
})
errCheck(err, "Failed to connect to Ethereum consensus node")

specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
errCheck(err, "Failed to obtain chain specification")

if viper.GetBool("quiet") {
Expand Down
2 changes: 1 addition & 1 deletion cmd/chainstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ In quiet mode this will return 0 if the chain status can be obtained, otherwise
errCheck(err, "Failed to connect to Ethereum 2 beacon node")

chainTime, err := standardchaintime.New(ctx,
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
)
errCheck(err, "Failed to configure chaintime service")
Expand Down
4 changes: 2 additions & 2 deletions cmd/epoch/summary/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand Down Expand Up @@ -397,7 +397,7 @@ func (c *command) processBlobs(ctx context.Context) error {
case spec.DataVersionPhase0, spec.DataVersionAltair, spec.DataVersionBellatrix, spec.DataVersionCapella:
// No blobs in these forks.
case spec.DataVersionDeneb:
c.summary.Blobs += len(block.Deneb.Message.Body.BlobKzgCommitments)
c.summary.Blobs += len(block.Deneb.Message.Body.BlobKZGCommitments)
default:
return fmt.Errorf("unhandled block version %v", block.Version)
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/exitverify.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ In quiet mode this will return 0 if the exit is verified correctly, otherwise 1.
opRoot, err := signedOp.Message.HashTreeRoot()
errCheck(err, "Failed to obtain exit hash tree root")

genesisResponse, err := eth2Client.(consensusclient.GenesisProvider).Genesis(ctx)
genesisResponse, err := eth2Client.(consensusclient.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
errCheck(err, "Failed to obtain beacon chain genesis")
genesis := genesisResponse.Data

Expand Down
5 changes: 3 additions & 2 deletions cmd/nodeinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"os"

eth2client "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/wealdtech/ethdo/util"
Expand Down Expand Up @@ -48,12 +49,12 @@ In quiet mode this will return 0 if the node information can be obtained, otherw
}

if viper.GetBool("verbose") {
versionResponse, err := eth2Client.(eth2client.NodeVersionProvider).NodeVersion(ctx)
versionResponse, err := eth2Client.(eth2client.NodeVersionProvider).NodeVersion(ctx, &api.NodeVersionOpts{})
errCheck(err, "Failed to obtain node version")
fmt.Printf("Version: %s\n", versionResponse.Data)
}

syncStateResponse, err := eth2Client.(eth2client.NodeSyncingProvider).NodeSyncing(ctx)
syncStateResponse, err := eth2Client.(eth2client.NodeSyncingProvider).NodeSyncing(ctx, &api.NodeSyncingOpts{})
errCheck(err, "failed to obtain node sync state")
fmt.Printf("Syncing: %t\n", syncStateResponse.Data.SyncDistance != 0)

Expand Down
2 changes: 1 addition & 1 deletion cmd/proposer/duties/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand Down
5 changes: 3 additions & 2 deletions cmd/slot/time/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"time"

eth2client "github.com/attestantio/go-eth2-client"
"github.com/attestantio/go-eth2-client/api"
"github.com/pkg/errors"
)

Expand All @@ -41,13 +42,13 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
return nil, errors.New("slot must be a positive integer")
}

genesisResponse, err := data.eth2Client.(eth2client.GenesisProvider).Genesis(ctx)
genesisResponse, err := data.eth2Client.(eth2client.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain genesis information")
}
genesis := genesisResponse.Data

specResponse, err := data.eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := data.eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain chain specifications")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/synccommittee/inclusion/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (c *command) setup(ctx context.Context) error {

c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithSpecProvider(c.eth2Client.(eth2client.SpecProvider)),
standardchaintime.WithGenesisTimeProvider(c.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.eth2Client.(eth2client.GenesisProvider)),
)
if err != nil {
return errors.Wrap(err, "failed to set up chaintime service")
Expand Down
2 changes: 1 addition & 1 deletion cmd/synccommittee/members/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func input(ctx context.Context) (*dataIn, error) {

// Chain time.
data.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithGenesisTimeProvider(data.eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(data.eth2Client.(eth2client.GenesisProvider)),
standardchaintime.WithSpecProvider(data.eth2Client.(eth2client.SpecProvider)),
)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/synccommittee/members/process_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestProcess(t *testing.T) {
require.NoError(t, err)

chainTime, err := standardchaintime.New(context.Background(),
standardchaintime.WithGenesisTimeProvider(eth2Client.(eth2client.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(eth2Client.(eth2client.GenesisProvider)),
standardchaintime.WithSpecProvider(eth2Client.(eth2client.SpecProvider)),
)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion cmd/validator/credentials/set/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ func (c *command) setup(ctx context.Context) error {

// Set up chaintime.
c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithGenesisTimeProvider(c.consensusClient.(consensusclient.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.consensusClient.(consensusclient.GenesisProvider)),
standardchaintime.WithSpecProvider(c.consensusClient.(consensusclient.SpecProvider)),
)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions cmd/validator/duties/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ func process(ctx context.Context, data *dataIn) (*dataOut, error) {
}
results.nextEpochAttesterDuty = nextEpochAttesterDuty

genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx)
genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain genesis data")
}
results.genesisTime = genesisResponse.Data.GenesisTime

specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
if err != nil {
return nil, errors.Wrap(err, "failed to obtain beacon chain configuration")
}
Expand Down Expand Up @@ -124,14 +124,14 @@ func proposerDuties(ctx context.Context, eth2Client eth2client.Service, validato
}

func currentEpoch(ctx context.Context, eth2Client eth2client.Service) (spec.Epoch, error) {
specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx)
specResponse, err := eth2Client.(eth2client.SpecProvider).Spec(ctx, &api.SpecOpts{})
if err != nil {
return 0, errors.Wrap(err, "failed to obtain beacon chain configuration")
}
slotsPerEpoch := specResponse.Data["SLOTS_PER_EPOCH"].(uint64)
slotDuration := specResponse.Data["SECONDS_PER_SLOT"].(time.Duration)

genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx)
genesisResponse, err := eth2Client.(eth2client.GenesisProvider).Genesis(ctx, &api.GenesisOpts{})
if err != nil {
return 0, errors.Wrap(err, "failed to obtain genesis data")
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/validator/exit/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ func (c *command) setup(ctx context.Context) error {

// Set up chaintime.
c.chainTime, err = standardchaintime.New(ctx,
standardchaintime.WithGenesisTimeProvider(c.consensusClient.(consensusclient.GenesisTimeProvider)),
standardchaintime.WithGenesisProvider(c.consensusClient.(consensusclient.GenesisProvider)),
standardchaintime.WithSpecProvider(c.consensusClient.(consensusclient.SpecProvider)),
)
if err != nil {
Expand Down
Loading

0 comments on commit 841ba8e

Please sign in to comment.