mirror of
https://github.com/luxfi/coreth.git
synced 2026-10-30 17:00:51 +00:00
24 lines
640 B
Go
24 lines
640 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package utils
|
|
|
|
import (
|
|
"context"
|
|
|
|
validators "github.com/luxfi/consensus/validator"
|
|
"github.com/luxfi/consensus/validator/validatorstest"
|
|
"github.com/luxfi/ids"
|
|
)
|
|
|
|
func NewTestValidatorState() *validatorstest.State {
|
|
return &validatorstest.State{
|
|
GetCurrentHeightF: func(context.Context) (uint64, error) {
|
|
return 0, nil
|
|
},
|
|
GetValidatorSetF: func(context.Context, uint64, ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) {
|
|
return map[ids.NodeID]*validators.GetValidatorOutput{}, nil
|
|
},
|
|
}
|
|
}
|