package eradb

import "github.com/ethereum/go-ethereum/core/rawdb/eradb"

Package eradb implements a history backend using era1 files.

Index

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store manages read access to a directory of era1 files. The getter methods are thread-safe.

func New

func New(datadir string) (*Store, error)

New opens the store directory.

func (*Store) Close

func (db *Store) Close()

Close closes all open era1 files in the cache.

func (*Store) GetRawBody

func (db *Store) GetRawBody(number uint64) ([]byte, error)

GetRawBody returns the raw body for a given block number.

func (*Store) GetRawReceipts

func (db *Store) GetRawReceipts(number uint64) ([]byte, error)

GetRawReceipts returns the raw receipts for a given block number.

Source Files

eradb.go

Version
v1.16.1 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
21 hours ago

Tools for package owners.