mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Refactor View classes:
The View hierarchy of classes is reorganized to include new classes with member functions moved and renamed, to solve defects in the original design: OpenView accumulates raw state and tx changes and can be applied to the base. ApplyView accumulates changes for a single transaction, including metadata, and can be applied to an OpenView. The Sandbox allows changes with the option to apply or throw them out. The PaymentSandbox provides a sandbox with account credit deferral. Call sites are changed to use the class appropriate for the task.
This commit is contained in:
@@ -74,8 +74,8 @@ invoke (TxType type,
|
||||
}
|
||||
|
||||
std::pair<TER, bool>
|
||||
apply (BasicView& view,
|
||||
STTx const& tx, ViewFlags flags,
|
||||
apply (OpenView& view,
|
||||
STTx const& tx, ApplyFlags flags,
|
||||
Config const& config,
|
||||
beast::Journal j)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user