Files
node/nets/no_op_allower.go

16 lines
351 B
Go

// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package nets
import "github.com/luxfi/ids"
// NoOpAllower is an Allower that always returns true
var NoOpAllower Allower = noOpAllower{}
type noOpAllower struct{}
func (noOpAllower) IsAllowed(ids.NodeID, bool) bool {
return true
}