Skip to main content

Module consts

Module consts 

Source
Expand description

Shared protocol constants used by the node runtime.

Constants§

CONNECT_FAILED_LIMIT
Connect Behaviour
DATA_REDUNDANT
Redundant setting of entry data storage
DEFAULT_STORAGE_CAPACITY
Default storage capacity in bytes for node storage backends (DHT entries, measurements, and provisional evidence).
DHT_REMOVAL_STORAGE_CAPACITY
Byte budget of the store of the data namespace’s remove sides (#920, #907): at least the REMOVAL_STORE_MAX_REMOVES items the accounting admits, each filed in at most REMOVAL_STORED_ITEM_WIRE_MAX bytes when every record holds one (about 19.6 MB). The store is retained and evicts nothing: a remove beyond the budget is refused, never another one evicted.
MAIL_STORAGE_CAPACITY
Byte budget of each retained browser mail store (mail-inbox and mail-records).
MSG_RECV_FAILED_LIMIT
Message Received Behaviour
MSG_SEND_FAILED_LIMIT
Message Send Behaviour
ONION_ENTRY_GUARD_STORAGE_CAPACITY
Byte budget of the onion entry-guard store.
RELAY_INBOX_STORAGE_CAPACITY
Byte budget of the relay-inbox store: the carriers this node holds or owns, each at most RELAY_INBOX_MAX_LEN held messages. The store is retained and evicts nothing (#1021): a hold beyond the budget is refused, so the sender’s message is not held, instead of evicting mail already held.
TRANSACTION_REPLAY_STORAGE_CAPACITY
Byte budget of the replay store: at least every record of a full store (rings_core::message::TRANSACTION_REPLAY_STORE_MAX_BYTES, about 27 MiB). The store is authoritative and evicts nothing: a write beyond the budget fails, which fails that transition closed, so the budget must never be reached.