github.com/ava-labs/avalanchego@v1.11.11/subnets/no_op_allower.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package subnets
     5  
     6  import "github.com/ava-labs/avalanchego/ids"
     7  
     8  // NoOpAllower is an Allower that always returns true
     9  var NoOpAllower Allower = noOpAllower{}
    10  
    11  type noOpAllower struct{}
    12  
    13  func (noOpAllower) IsAllowed(ids.NodeID, bool) bool {
    14  	return true
    15  }