mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
24 lines
474 B
Go
24 lines
474 B
Go
// (c) 2021-2024, Lux Partners Limited. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package handlers
|
|
|
|
import (
|
|
"github.com/luxdefi/evm/core/state/snapshot"
|
|
"github.com/luxdefi/evm/core/types"
|
|
"github.com/ethereum/go-ethereum/common"
|
|
)
|
|
|
|
type BlockProvider interface {
|
|
GetBlock(common.Hash, uint64) *types.Block
|
|
}
|
|
|
|
type SnapshotProvider interface {
|
|
Snapshots() *snapshot.Tree
|
|
}
|
|
|
|
type SyncDataProvider interface {
|
|
BlockProvider
|
|
SnapshotProvider
|
|
}
|