mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +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:
@@ -89,9 +89,10 @@ public:
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
OpenView::OpenView (open_ledger_t,
|
||||
ReadView const* base,
|
||||
ReadView const* base, Rules const& rules,
|
||||
std::shared_ptr<void const> hold)
|
||||
: info_ (base->info())
|
||||
: rules_ (rules)
|
||||
, info_ (base->info())
|
||||
, base_ (base)
|
||||
, hold_ (std::move(hold))
|
||||
{
|
||||
@@ -102,7 +103,8 @@ OpenView::OpenView (open_ledger_t,
|
||||
|
||||
OpenView::OpenView (ReadView const* base,
|
||||
std::shared_ptr<void const> hold)
|
||||
: info_ (base->info())
|
||||
: rules_ (base->rules())
|
||||
, info_ (base->info())
|
||||
, base_ (base)
|
||||
, hold_ (std::move(hold))
|
||||
{
|
||||
@@ -138,6 +140,12 @@ OpenView::fees() const
|
||||
return base_->fees();
|
||||
}
|
||||
|
||||
Rules const&
|
||||
OpenView::rules() const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
bool
|
||||
OpenView::exists (Keylet const& k) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user