eradb

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package eradb implements a history backend using era1 files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL