Files
evm/warp/warptest/noop_validator_reader.go
zeekay 8bc9dd01a8 Fix CI: Go version and script permissions
- Change Go version from 1.24.6 to 1.22.8 (stable version)
- Ensure all build scripts have executable permissions
- Fix covdata issue by using stable Go version
- CI should now pass all checks
2025-09-19 05:56:47 +00:00

22 lines
664 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// warptest exposes common functionality for testing the warp package.
package warptest
import (
"time"
"github.com/luxfi/evm/plugin/evm/validators/interfaces"
stateinterfaces "github.com/luxfi/evm/plugin/evm/validators/state/interfaces"
"github.com/luxfi/ids"
)
var _ interfaces.ValidatorReader = (*NoOpValidatorReader)(nil)
type NoOpValidatorReader struct{}
func (NoOpValidatorReader) GetValidatorAndUptime(ids.ID) (stateinterfaces.Validator, time.Duration, time.Time, error) {
return stateinterfaces.Validator{}, 0, time.Time{}, nil
}