github.com/MetalBlockchain/subnet-evm@v0.4.9/sync/handlers/handler.go (about)

     1  // (c) 2021-2022, Ava Labs, Inc. All rights reserved.
     2  // See the file LICENSE for licensing terms.
     3  
     4  package handlers
     5  
     6  import (
     7  	"github.com/MetalBlockchain/subnet-evm/core/state/snapshot"
     8  	"github.com/MetalBlockchain/subnet-evm/core/types"
     9  	"github.com/ethereum/go-ethereum/common"
    10  )
    11  
    12  type BlockProvider interface {
    13  	GetBlock(common.Hash, uint64) *types.Block
    14  }
    15  
    16  type SnapshotProvider interface {
    17  	Snapshots() *snapshot.Tree
    18  }
    19  
    20  type SyncDataProvider interface {
    21  	BlockProvider
    22  	SnapshotProvider
    23  }