Documentation ¶
Index ¶
- Variables
- func IndexChain(indexer interfaces.StateDiffIndexer, params IndexChainParams) error
- func SetupDB() *sqlx.DB
- func TearDownDB(db *sqlx.DB) error
- func TestStateDiffIndexer(ctx context.Context, chainConfig *params.ChainConfig, genHash common.Hash) (interfaces.StateDiffIndexer, error)
- type IndexChainParams
Constants ¶
This section is empty.
Variables ¶
View Source
var TestDBConfig, _ = postgres.TestConfig.WithEnv()
Functions ¶
func IndexChain ¶
func IndexChain(indexer interfaces.StateDiffIndexer, params IndexChainParams) error
func TearDownDB ¶
TearDownDB is used to tear down the watcher dbs after tests
func TestStateDiffIndexer ¶
func TestStateDiffIndexer(ctx context.Context, chainConfig *params.ChainConfig, genHash common.Hash) (interfaces.StateDiffIndexer, error)
Types ¶
type IndexChainParams ¶
type IndexChainParams struct { Blocks []*types.Block Receipts []types.Receipts StateCache state.Database StateDiffParams statediff.Params TotalDifficulty *big.Int // Whether to skip indexing state nodes (state_cids, storage_cids) SkipStateNodes bool // Whether to skip indexing IPLD blocks SkipIPLDs bool }
Click to show internal directories.
Click to hide internal directories.