pub struct Settings {
pub chain: PathBuf,
pub dir: PathBuf,
pub key_file: PathBuf,
pub port: u16,
pub interval: u64,
pub tx_interval: u64,
pub round: RoundConfig,
pub pegout: PegoutConfig,
pub relays: Vec<String>,
pub mirrors: Vec<String>,
pub parent: Option<ParentSettings>,
pub journal: Option<PathBuf>,
}Expand description
How a signer is run.
Fields§
§chain: PathBufThe chain document.
dir: PathBufThe block file directory; pegins.json, pegouts.json and the
journal live beside it.
key_file: PathBufThe key file (32-byte hex). Never a command-line value.
port: u16The HTTP port on 127.0.0.1. /blocks.dat serves only what the
accepted index covers; POST /tx over MAX_TX_BODY bytes is 413.
interval: u64Seconds between blocks when the mempool is empty.
tx_interval: u64Seconds between blocks when it is not.
round: RoundConfigThe round’s options.
pegout: PegoutConfigThe peg-out round’s options (network filled from the document).
relays: Vec<String>Relays to follow and publish to.
mirrors: Vec<String>Mirrors to name in the tip announcement; none means no announcement.
parent: Option<ParentSettings>The parent node’s JSON-RPC, cookie file and peg wallet.
journal: Option<PathBuf>The block round’s vote journal; default <dir>/votes.jsonl. The
peg-out round journals beside it in <stem>-pegout.jsonl (default
<dir>/votes-pegout.jsonl): one file per round, one writer per file.