github.com/MetalBlockchain/metalgo@v1.11.9/snow/networking/benchlist/benchable.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package benchlist 5 6 import "github.com/MetalBlockchain/metalgo/ids" 7 8 // Benchable is notified when a validator is benched or unbenched from a given chain 9 type Benchable interface { 10 // Mark that [validatorID] has been benched on the given chain 11 Benched(chainID ids.ID, validatorID ids.NodeID) 12 // Mark that [validatorID] has been unbenched from the given chain 13 Unbenched(chainID ids.ID, validatorID ids.NodeID) 14 }