# Functions
GetBlock retrieves an entire block corresponding to the hash, assembling it back from the stored header and body.
GetBody retrieves the block body (transactons, uncles) corresponding to the hash.
GetBodyRLP retrieves the block body (transactions and uncles) in RLP encoding.
No description provided by the author
GetChtRoot reads the CHT root assoctiated to the given section from the database Note that sectionIdx is specified according to LES/1 CHT section size.
GetFruit retrieves an entire fruit corresponding to the hash, assembling it back from the stored header and body.
GetFruitBody retrieves the fruit body (transactons, uncles) corresponding to the hash.
No description provided by the author
GetUntrustedHeaderByNumber fetches specified block header without correctness checking.
NewChtIndexer creates a Cht chain indexer.
NewLightChain returns a fully initialised light chain using information available in the database.
StoreChtRoot writes the CHT root associated to the given section into the database Note that sectionIdx is specified according to LES/1 CHT section size.
# Variables
No description provided by the author
No description provided by the author
ErrNoPeers is returned if no peers capable of serving a queued request are available.
No description provided by the author
NoOdr is the default context passed to an ODR capable function when the ODR service is not required.
# Structs
BlockRequest is the ODR request type for retrieving block bodies.
ChtIndexerBackend implements core.ChainIndexerBackend.
ChtNode structures are stored in the Canonical Hash Trie in an RLP encoded format.
ChtRequest is the ODR request type for state/storage trie entries.
BlockRequest is the ODR request type for retrieving block bodies.
LightChain represents a canonical chain that by default only handles block headers, downloading block bodies and receipts on demand through an ODR interface.
# Interfaces
OdrBackend is an interface to a backend service that handles ODR retrievals type.
OdrRequest is an interface for retrieval requests.