xrpld
Loading...
Searching...
No Matches
PermissionedDEXInvariant.h
1#pragma once
2
3#include <xrpl/basics/base_uint.h>
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/ledger/ReadView.h>
6#include <xrpl/protocol/STTx.h>
7#include <xrpl/protocol/TER.h>
8
9namespace xrpl {
10
12{
13 bool regularOffersOld_ = false; // pre-fixCleanup3_2_0: also flags deleted offers
14 bool regularOffers_ = false; // post-fixCleanup3_2_0: excludes deleted offers
15 bool badHybridsOld_ = false; // pre-fixCleanup3_1_3: missing field/domain or size > 1
16 bool badHybrids_ = false; // post-fixCleanup3_1_3: also catches size == 0 (size != 1)
18
19public:
20 void
22
23 bool
24 finalize(STTx const&, TER const, XRPAmount const, ReadView const&, beast::Journal const&);
25};
26
27} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:38
A view into a ledger.
Definition ReadView.h:31
std::shared_ptr< STLedgerEntry const > const & const_ref
bool finalize(STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &)
void visitEntry(bool, SLE::const_ref, SLE::const_ref)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::unordered_set< Value, Hash, Pred, Allocator > hash_set
TERSubset< CanCvtToTER > TER
Definition TER.h:634