Files
zeekayandHanzo Dev b1cc108c9f gofmt
Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 01:51:51 -07:00

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)
}