Limit changed node count

This commit is contained in:
JoelKatz
2015-09-07 08:57:02 -07:00
committed by Nik Bougalis
parent 91eee1a42d
commit 88f885f2e7
10 changed files with 56 additions and 1 deletions

View File

@@ -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,

View File

@@ -148,6 +148,13 @@ ApplyViewBase::update(
items_.update(*base_, sle);
}
std::size_t
ApplyViewBase::size ()
{
return items_.size ();
}
//---
void

View File

@@ -38,4 +38,10 @@ ApplyViewImpl::apply (OpenView& to,
items_.apply(to, tx, ter, deliver_, j);
}
std::size_t
ApplyViewImpl::size ()
{
return items_.size ();
}
} // ripple