[][src]Crate ledger_archive_node_canister

Structs

ARCHIVE_STATE
ArchiveNodeState

Constants

DEFAULT_MAX_MEMORY_SIZE

Functions

append_blocks
append_blocks_
encode_metrics
get_block

Get Block by BlockHeight. If the BlockHeight is outside the range stored in this Node the result is None

get_block_
get_blocks_

Get multiple Blocks by BlockHeight and length. If the query is outside the range stored in the Node the result is an error.

http_request
init
iter_blocks_

Get multiple blocks by offset into the container (not BlockHeight) and length. Note that this simply iterates the blocks available in the this particular archive node without taking into account the ledger or the remainder of the archive. For example, if the node contains blocks with heights [100, 199] then iter_blocks(0, 1) will return the block with height 100.

main
post_upgrade
pre_upgrade
print
remaining_capacity
remaining_capacity_