github.com/MetalBlockchain/metalgo@v1.11.9/vms/platformvm/validators/test_manager.go (about)

     1  // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package validators
     5  
     6  import (
     7  	"context"
     8  
     9  	"github.com/MetalBlockchain/metalgo/ids"
    10  	"github.com/MetalBlockchain/metalgo/snow/validators"
    11  )
    12  
    13  var TestManager Manager = testManager{}
    14  
    15  type testManager struct{}
    16  
    17  func (testManager) GetMinimumHeight(context.Context) (uint64, error) {
    18  	return 0, nil
    19  }
    20  
    21  func (testManager) GetCurrentHeight(context.Context) (uint64, error) {
    22  	return 0, nil
    23  }
    24  
    25  func (testManager) GetSubnetID(context.Context, ids.ID) (ids.ID, error) {
    26  	return ids.Empty, nil
    27  }
    28  
    29  func (testManager) GetValidatorSet(context.Context, uint64, ids.ID) (map[ids.NodeID]*validators.GetValidatorOutput, error) {
    30  	return nil, nil
    31  }
    32  
    33  func (testManager) OnAcceptedBlockID(ids.ID) {}