mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add Rules to ReadView:
An instance of Rules provides information on the tx processing rules in a particular ledger. * OpenView allows rules to be set on construction. Conflicts: src/ripple/unity/ledger.cpp
This commit is contained in:
@@ -1322,7 +1322,14 @@ void NetworkOPsImp::switchLastClosedLedger (
|
||||
|
||||
#if RIPPLE_OPEN_LEDGER
|
||||
auto retries = localTx;
|
||||
getApp().openLedger().accept(
|
||||
auto const lastVal =
|
||||
getApp().getLedgerMaster().getValidatedLedger();
|
||||
boost::optional<Rules> rules;
|
||||
if (lastVal)
|
||||
rules.emplace(*lastVal);
|
||||
else
|
||||
rules.emplace();
|
||||
getApp().openLedger().accept(*rules,
|
||||
newLCL, OrderedTxs({}), false, retries,
|
||||
tapNONE, getApp().getHashRouter(), "jump");
|
||||
getApp().openLedger().verify(
|
||||
|
||||
Reference in New Issue
Block a user