Files
xrpl-dev-portal/docs/infrastructure/testing-and-auditing/advance-the-ledger-in-stand-alone-mode.md
2024-10-09 15:26:34 -07:00

1.8 KiB

html, parent, seo, labels
html parent seo labels
advance-the-ledger-in-stand-alone-mode.html use-stand-alone-mode.html
description
Make progress in stand-alone mode by manually closing the ledger.
Core Server

Advance the Ledger in Stand-Alone Mode

In [stand-alone mode][], rippled does not communicate to other members of the peer-to-peer network or participate in a consensus process. Since there is no consensus process in this mode, you must manually advance the ledger index using the [ledger_accept method][]:

rippled ledger_accept --conf=/path/to/rippled.cfg

In stand-alone mode, rippled makes no distinction between a "closed" ledger version and a "validated" ledger version. (For more information about the difference, see The XRP Ledger Consensus Process.)

Whenever rippled closes a ledger, it reorders the transactions according to a deterministic but hard-to-game algorithm. (This is an important part of consensus, since transactions may arrive at different parts of the network in different order.) When using rippled in stand-alone mode, you should manually advance the ledger before submitting a transaction that depends on the result of a transaction from a different address. Otherwise, the two transactions might be executed in reverse order when the ledger is closed.

{% admonition type="info" name="Note" %}You can safely submit multiple transactions from a single address to a single ledger, because rippled sorts transactions from the same address in ascending order by Sequence number.{% /admonition %}

See Also

{% raw-partial file="/docs/_snippets/common-links.md" /%}