mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- 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
22 lines
664 B
Go
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
|
|
}
|