Versions in this module Expand all Collapse all v1 v1.0.1 Feb 24, 2023 Changes in this version + type Store struct + func NewStore(mainDB kvdb.Store, cfg StoreConfig) *Store + func (s *Store) ApplyGenesis(g forest.Genesis, startingRoot hash.Hash) (evmBlock *evmcore.EvmBlock, err error) + func (s *Store) Cap(max, min int) + func (s *Store) Commit(root hash.Hash) error + func (s *Store) EvmDatabase() state.Database + func (s *Store) EvmKvdbTable() kvdb.Store + func (s *Store) EvmLogs() *topicsdb.Index + func (s *Store) EvmTable() ethdb.Database + func (s *Store) GetCachedEvmBlock(n idx.Block) *evmcore.EvmBlock + func (s *Store) GetReceipts(n idx.Block) types.Receipts + func (s *Store) GetTx(txid common.Hash) *types.Transaction + func (s *Store) GetTxPosition(txid common.Hash) *TxPosition + func (s *Store) IndexLogs(recs ...*types.Log) + func (s *Store) InitEvmSnapshot(root hash.Hash) (err error) + func (s *Store) SetCachedEvmBlock(n idx.Block, b *evmcore.EvmBlock) + func (s *Store) SetRawReceipts(n idx.Block, receipts []*types.ReceiptForStorage) (size int) + func (s *Store) SetReceipts(n idx.Block, receipts types.Receipts) + func (s *Store) SetTx(txid common.Hash, tx *types.Transaction) + func (s *Store) SetTxPosition(txid common.Hash, position TxPosition) + func (s *Store) StateDB(from hash.Hash) (*state.StateDB, error) + type StoreCacheConfig struct + EvmBlocksNum int + EvmBlocksSize uint + EvmDatabase int + EvmSnap int + ReceiptsBlocks int + ReceiptsSize uint + TxPositions int + type StoreConfig struct + Cache StoreCacheConfig + EnablePreimageRecording bool + EnableSnapshots bool + func DefaultStoreConfig(scale cachescale.Func) StoreConfig + func LiteStoreConfig() StoreConfig + type TxPosition struct + Block idx.Block + BlockOffset uint32 + Event hash.Event + EventOffset uint32