mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-19 10:58:19 -05:00
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com> Co-authored-by: colinlyguo <colinlyguo@gmail.com>
17 lines
415 B
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
|
|
}
|