rippled
Loading...
Searching...
No Matches
LoanInvariant.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/ledger/ReadView.h>
5#include <xrpl/protocol/STTx.h>
6#include <xrpl/protocol/TER.h>
7
8#include <vector>
9
10namespace xrpl {
11
19{
20 // Pair is <before, after>. After is used for most of the checks, except
21 // those that check changed values.
23
24public:
25 void
27
28 bool
29 finalize(STTx const&, TER const, XRPAmount const, ReadView const&, beast::Journal const&);
30};
31
32} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
A view into a ledger.
Definition ReadView.h:31
Invariants: Loans are internally consistent.
void visitEntry(bool, std::shared_ptr< SLE const > const &, std::shared_ptr< SLE const > const &)
std::vector< std::pair< SLE::const_pointer, SLE::const_pointer > > loans_
bool finalize(STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5