mirror of
https://github.com/luxfi/vm.git
synced 2026-10-30 15:13:40 +00:00
16 lines
352 B
Go
16 lines
352 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
|
|
}
|