mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove unfunded offers on tecOVERSIZE
This commit is contained in:
@@ -72,6 +72,39 @@ ApplyStateTable::size ()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
ApplyStateTable::visit (ReadView const& to,
|
||||
std::function <void (
|
||||
uint256 const& key,
|
||||
bool isDelete,
|
||||
std::shared_ptr <SLE const> const& before,
|
||||
std::shared_ptr <SLE const> const& after)> const& func)
|
||||
{
|
||||
for (auto& item : items_)
|
||||
{
|
||||
switch (item.second.first)
|
||||
{
|
||||
case Action::erase:
|
||||
func (item.first, true,
|
||||
to.read (keylet::unchecked (item.first)), item.second.second);
|
||||
break;
|
||||
|
||||
case Action::insert:
|
||||
func (item.first, false,
|
||||
nullptr, item.second.second);
|
||||
break;
|
||||
|
||||
case Action::modify:
|
||||
func (item.first, false,
|
||||
to.read (keylet::unchecked (item.first)), item.second.second);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ApplyStateTable::apply (OpenView& to,
|
||||
STTx const& tx, TER ter,
|
||||
|
||||
@@ -148,13 +148,6 @@ ApplyViewBase::update(
|
||||
items_.update(*base_, sle);
|
||||
}
|
||||
|
||||
std::size_t
|
||||
ApplyViewBase::size ()
|
||||
{
|
||||
return items_.size ();
|
||||
}
|
||||
|
||||
|
||||
//---
|
||||
|
||||
void
|
||||
|
||||
@@ -44,4 +44,16 @@ ApplyViewImpl::size ()
|
||||
return items_.size ();
|
||||
}
|
||||
|
||||
void
|
||||
ApplyViewImpl::visit (
|
||||
OpenView& to,
|
||||
std::function <void (
|
||||
uint256 const& key,
|
||||
bool isDelete,
|
||||
std::shared_ptr <SLE const> const& before,
|
||||
std::shared_ptr <SLE const> const& after)> const& func)
|
||||
{
|
||||
items_.visit (to, func);
|
||||
}
|
||||
|
||||
} // ripple
|
||||
|
||||
Reference in New Issue
Block a user