|
rippled
|
Invariants: Permissioned Domains must have some rules and AcceptedCredentials must have length between 1 and 10 inclusive. More...
#include <PermissionedDomainInvariant.h>

Classes | |
| struct | SleStatus |
Public Member Functions | |
| void | visitEntry (bool, std::shared_ptr< SLE const > const &, std::shared_ptr< SLE const > const &) |
| bool | finalize (STTx const &, TER const, XRPAmount const, ReadView const &, beast::Journal const &) |
Private Attributes | |
| std::vector< SleStatus > | sleStatus_ |
Invariants: Permissioned Domains must have some rules and AcceptedCredentials must have length between 1 and 10 inclusive.
Since only permissions constitute rules, an empty credentials list means that there are no rules and the invariant is violated.
Credentials must be sorted and no duplicates allowed
Definition at line 22 of file PermissionedDomainInvariant.h.
| void xrpl::ValidPermissionedDomain::visitEntry | ( | bool | isDel, |
| std::shared_ptr< SLE const > const & | before, | ||
| std::shared_ptr< SLE const > const & | after | ||
| ) |
Definition at line 12 of file PermissionedDomainInvariant.cpp.
| bool xrpl::ValidPermissionedDomain::finalize | ( | STTx const & | tx, |
| TER const | result, | ||
| XRPAmount const | , | ||
| ReadView const & | view, | ||
| beast::Journal const & | j | ||
| ) |
Definition at line 49 of file PermissionedDomainInvariant.cpp.
|
private |
Definition at line 31 of file PermissionedDomainInvariant.h.