mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Limit changed node count
This commit is contained in:
@@ -53,6 +53,25 @@ ApplyStateTable::apply (RawView& to) const
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ApplyStateTable::size ()
|
||||
{
|
||||
std::size_t ret = 0;
|
||||
for (auto& item : items_)
|
||||
{
|
||||
switch (item.second.first)
|
||||
{
|
||||
case Action::erase:
|
||||
case Action::insert:
|
||||
case Action::modify:
|
||||
++ret;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
ApplyStateTable::apply (OpenView& to,
|
||||
STTx const& tx, TER ter,
|
||||
|
||||
@@ -148,6 +148,13 @@ ApplyViewBase::update(
|
||||
items_.update(*base_, sle);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ApplyViewBase::size ()
|
||||
{
|
||||
return items_.size ();
|
||||
}
|
||||
|
||||
|
||||
//---
|
||||
|
||||
void
|
||||
|
||||
@@ -38,4 +38,10 @@ ApplyViewImpl::apply (OpenView& to,
|
||||
items_.apply(to, tx, ter, deliver_, j);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ApplyViewImpl::size ()
|
||||
{
|
||||
return items_.size ();
|
||||
}
|
||||
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user