Skip to main content

Module forward

Module forward 

Source
Expand description

Forwarding to a node: methods that Clio does not serve itself but passes to xrpld (node state, fees, the current ledger, field definitions). Nodes are tried round-robin, each with its own timeout; the node’s response is returned as is and marked forwarded, as in Clio. Identical requests within CACHE_FOR get the same response; this is how Clio absorbs bursts of fee polling. One request gets TOTAL_LIMIT over all nodes, and a node that just failed is tried last, so that one dead node doesn’t cost half of the requests a timeout.

submit and simulate go to a node only when the operator turned them on, never carry signing material, and submit is never cached or retried once it may have reached a node (send_transaction).

Structs§

Forwarder

Constants§

FORWARDED
Methods that go to the node.

Functions§

forwarded
Whether a request goes to the node, following Clio’s rule: node methods; a public read method asking about the current or closed ledger (Astraea keeps only validated ones); the transaction queue in account_info and ledger.
hide_node
Leaves the node’s own fields out of a forwarded node-state reply.
node_info
Node fields in server_info, as in Clio: the fee multiplier (clients such as xrpl.js compute fees from it; hundreds under escalation) and the xrpld version. node is the result of the node’s server_info response.
submission
Methods that send a transaction to a node or try one out.
submission_params
The parameters of submit or simulate that may reach the node. A request that would have the node sign is refused: a secret must not travel through this server, and a node that trusts us might act on it.