From 7e6e941ea80e5a1532bd604fbbd4f7f77793c41e Mon Sep 17 00:00:00 2001 From: tsachiherman <24438559+tsachiherman@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:58:50 -0500 Subject: [PATCH] update --- x/dsmr/node.go | 2 +- x/dsmr/node_test.go | 2 +- x/dsmr/storage.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/dsmr/node.go b/x/dsmr/node.go index 8f5ffd9734..bcb364fd65 100644 --- a/x/dsmr/node.go +++ b/x/dsmr/node.go @@ -52,7 +52,7 @@ var ( type ChainState interface { GetNetworkParams() (networdID uint32, subnetID, chainID ids.ID) GetSignatureParams(ctx context.Context) (validators warp.CanonicalValidatorSet, quorumNum uint64, quorumDen uint64, err error) - GetValidatorSet(ctx context.Context) (map[ids.NodeID]*snowValidators.GetValidatorOutput, error) + GetLatestValidatorSet(ctx context.Context) (map[ids.NodeID]*snowValidators.GetValidatorOutput, error) } type Validator struct { diff --git a/x/dsmr/node_test.go b/x/dsmr/node_test.go index 44244ede2c..d1cc91841c 100644 --- a/x/dsmr/node_test.go +++ b/x/dsmr/node_test.go @@ -1559,6 +1559,6 @@ func (t *testChainState) GetSignatureParams(ctx context.Context) (warp.Canonical return canonicalValidators, t.quorumNum, t.quorumDen, err } -func (t *testChainState) GetValidatorSet(context.Context) (map[ids.NodeID]*validators.GetValidatorOutput, error) { +func (t *testChainState) GetLatestValidatorSet(context.Context) (map[ids.NodeID]*validators.GetValidatorOutput, error) { return t.getValidatorSet(), nil } diff --git a/x/dsmr/storage.go b/x/dsmr/storage.go index cfd69a4c77..cb25988a6e 100644 --- a/x/dsmr/storage.go +++ b/x/dsmr/storage.go @@ -74,7 +74,7 @@ func (c ChunkVerifier[T]) Verify(chunk Chunk[T]) error { } // check if the producer was expected to produce this chunk. - validatorSet, err := c.chainState.GetValidatorSet(context.TODO()) + validatorSet, err := c.chainState.GetLatestValidatorSet(context.TODO()) if err != nil { return fmt.Errorf("%w: failed to retrieve validator set while verifying chunk", err) }