Files
scroll/database/cache/interface.go

17 lines
415 B
Go

package cache
import (
"context"
"math/big"
"github.com/scroll-tech/go-ethereum/common"
"github.com/scroll-tech/go-ethereum/core/types"
)
// Cache cache common interface.
type Cache interface {
ExistTrace(ctx context.Context, number *big.Int) (bool, error)
GetBlockTrace(ctx context.Context, hash common.Hash) (*types.BlockTrace, error)
SetBlockTrace(ctx context.Context, trace *types.BlockTrace) error
}