xrpld
Loading...
Searching...
No Matches
xrpl::ApplyViewContext Struct Reference

Bundles the mutable ledger view and the transaction being applied. More...

#include <ApplyView.h>

Collaboration diagram for xrpl::ApplyViewContext:

Public Attributes

ApplyView & view
STTx const & tx

Detailed Description

Bundles the mutable ledger view and the transaction being applied.

Passed together to avoid threading two separate parameters through every helper that needs both the view (for state reads/writes) and the transaction (for field inspection and metadata).

Both members are non-owning references; the caller is responsible for ensuring that the referenced objects outlive the ApplyViewContext.

TODO: replace with ApplyContext after it's untangled with xrpl/tx

Definition at line 450 of file ApplyView.h.

Member Data Documentation

◆ view

ApplyView& xrpl::ApplyViewContext::view

Definition at line 452 of file ApplyView.h.

◆ tx

STTx const& xrpl::ApplyViewContext::tx

Definition at line 453 of file ApplyView.h.