Skip to main content

Module node

Module node 

Source
Expand description

One signer of a federated chain, running (feature bin): the chain on disk, the block round and the peg-out round driven every second, relays followed and published to, the parent polled when there is one, and what a mirror needs served over HTTP. bin/siding.mjs produce on a level-2 document, in Rust, minus what is not level 2’s (the desk, the EVM rule, checkpoints).

Everything that owns state runs on one thread — sidestr-core’s state is not Send — so the HTTP server asks the loop over a channel, and only the relay sockets are separate tasks.

Structs§

ParentSettings
A parent view.
Settings
How a signer is run.

Constants§

MAX_TX_BODY
The most a POST /tx body may be, bytes; more is 413.

Functions§

pegout_journal_path_for
The peg-out round’s journal beside the block round’s: votes.jsonl → votes-pegout.jsonl.
run
Run one signer for the document at settings.chain, picking the header family from its parent.
run_as
Run one signer until the process ends. Generic over the header family; run picks it from the document.