|
xrpld
|
State information when applying a tx. More...
#include <ApplyContext.h>

Public Attributes | |
| std::reference_wrapper< ServiceRegistry > | registry |
| STTx const & | tx |
| TER const | preclaimResult |
| XRPAmount const | baseFee |
| beast::Journal const | journal |
Private Member Functions | |
| template<std::size_t... Is> | |
| TER | checkInvariantsHelper (TER const result, XRPAmount const fee, std::index_sequence< Is... >) |
Static Private Member Functions | |
| static TER | failInvariantCheck (TER const result) |
Private Attributes | |
| OpenView & | base_ |
| ApplyFlags | flags_ |
| std::optional< ApplyViewImpl > | view_ |
| std::optional< uint256 const > | parentBatchId_ |
State information when applying a tx.
Definition at line 27 of file ApplyContext.h.
|
explicit |
Definition at line 28 of file ApplyContext.cpp.
|
explicit |
Definition at line 44 of file ApplyContext.h.
| ApplyView & xrpl::ApplyContext::view | ( | ) |
Definition at line 64 of file ApplyContext.h.
|
nodiscard |
Definition at line 70 of file ApplyContext.h.
| RawView & xrpl::ApplyContext::rawView | ( | ) |
Definition at line 77 of file ApplyContext.h.
|
nodiscard |
Definition at line 83 of file ApplyContext.h.
| void xrpl::ApplyContext::deliver | ( | STAmount const & | amount | ) |
Sets the DeliveredAmount field in the metadata.
Definition at line 92 of file ApplyContext.h.
| void xrpl::ApplyContext::discard | ( | ) |
Discard changes and start fresh.
Definition at line 53 of file ApplyContext.cpp.
| std::optional< TxMeta > xrpl::ApplyContext::apply | ( | TER | ter | ) |
Apply the transaction result to the base.
Definition at line 59 of file ApplyContext.cpp.
| std::size_t xrpl::ApplyContext::size | ( | ) |
Get the number of unapplied changes.
Definition at line 66 of file ApplyContext.cpp.
| void xrpl::ApplyContext::visit | ( | std::function< void(uint256 const &key, bool isDelete, SLE::const_ref before, SLE::const_ref after)> const & | func | ) |
Visit unapplied changes.
Definition at line 72 of file ApplyContext.cpp.
| void xrpl::ApplyContext::destroyXRP | ( | XRPAmount const & | fee | ) |
Definition at line 127 of file ApplyContext.h.
Applies all invariant checkers one by one.
| result | the result generated by processing this transaction. |
| fee | the fee charged for this transaction |
Definition at line 139 of file ApplyContext.cpp.
| ApplyViewContext xrpl::ApplyContext::getApplyViewContext | ( | ) |
Definition at line 144 of file ApplyContext.h.
Definition at line 79 of file ApplyContext.cpp.
|
private |
Definition at line 93 of file ApplyContext.cpp.
| std::reference_wrapper<ServiceRegistry> xrpl::ApplyContext::registry |
Definition at line 57 of file ApplyContext.h.
| STTx const& xrpl::ApplyContext::tx |
Definition at line 58 of file ApplyContext.h.
| TER const xrpl::ApplyContext::preclaimResult |
Definition at line 59 of file ApplyContext.h.
| XRPAmount const xrpl::ApplyContext::baseFee |
Definition at line 60 of file ApplyContext.h.
| beast::Journal const xrpl::ApplyContext::journal |
Definition at line 61 of file ApplyContext.h.
|
private |
Definition at line 160 of file ApplyContext.h.
|
private |
Definition at line 161 of file ApplyContext.h.
|
private |
Definition at line 162 of file ApplyContext.h.
|
private |
Definition at line 165 of file ApplyContext.h.