mirror of
https://github.com/luxfi/node.git
synced 2026-10-30 15:24:05 +00:00
23 lines
608 B
Go
23 lines
608 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package indexer
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/luxfi/database/versiondb"
|
|
"github.com/luxfi/ids"
|
|
chain "github.com/luxfi/vm/chain"
|
|
)
|
|
|
|
// BlockServer represents all requests heightIndexer can issue
|
|
// against ProposerVM. All methods must be thread-safe.
|
|
type BlockServer interface {
|
|
versiondb.Commitable
|
|
|
|
// Note: this is a contention heavy call that should be avoided
|
|
// for frequent/repeated indexer ops
|
|
GetFullPostForkBlock(ctx context.Context, blkID ids.ID) (chain.Block, error)
|
|
}
|