Expand description
book_changes: for every order book touched in a ledger, the volumes that
crossed and the open, close, high and low rates, as in Clio 2.8
(BookChangesHelper.hpp) and xrpld (BookChanges.h).
Only offers that were partly or fully consumed count: a created offer has
nothing crossed yet, and an offer deleted by the transaction’s own
OfferSequence (OfferCancel, or OfferCreate replacing an offer) was cancelled.
Rates and sums follow xrpld’s STAmount arithmetic to the last digit:
divide scales both mantissas to 16 digits and keeps 17 more in the
quotient; additions go through Number in the large mantissa range
(19 digits) and are rounded back to the 16 digits of an issued amount,
both times to nearest with ties to even.
Functions§
- compute
- The
changesarray for a ledger’s transactions (binary transaction and metadata). A transaction that does not parse is skipped, as in Clio.