| 
    rippled
    
   | 
 
Invariant: frozen trust line balance change is not allowed. More...
#include <InvariantCheck.h>

Classes | |
| struct | BalanceChange | 
| struct | IssuerChanges | 
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 Types | |
| using | ByIssuer = std::map< Issue, IssuerChanges > | 
Private Member Functions | |
| bool | isValidEntry (std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after) | 
| STAmount | calculateBalanceChange (std::shared_ptr< SLE const > const &before, std::shared_ptr< SLE const > const &after, bool isDelete) | 
| void | recordBalance (Issue const &issue, BalanceChange change) | 
| void | recordBalanceChanges (std::shared_ptr< SLE const > const &after, STAmount const &balanceChange) | 
| std::shared_ptr< SLE const > | findIssuer (AccountID const &issuerID, ReadView const &view) | 
| bool | validateIssuerChanges (std::shared_ptr< SLE const > const &issuer, IssuerChanges const &changes, STTx const &tx, beast::Journal const &j, bool enforce) | 
| bool | validateFrozenState (BalanceChange const &change, bool high, STTx const &tx, beast::Journal const &j, bool enforce, bool globalFreeze) | 
Private Attributes | |
| ByIssuer | balanceChanges_ | 
| std::map< AccountID, std::shared_ptr< SLE const > const > | possibleIssuers_ | 
Invariant: frozen trust line balance change is not allowed.
We iterate all affected trust lines and ensure that they don't have unexpected change of balance if they're frozen.
Definition at line 309 of file InvariantCheck.h.
      
  | 
  private | 
Definition at line 323 of file InvariantCheck.h.
| void ripple::TransfersNotFrozen::visitEntry | ( | bool | isDelete, | 
| std::shared_ptr< SLE const > const & | before, | ||
| std::shared_ptr< SLE const > const & | after | ||
| ) | 
Definition at line 724 of file InvariantCheck.cpp.
| bool ripple::TransfersNotFrozen::finalize | ( | STTx const & | tx, | 
| TER const | ter, | ||
| XRPAmount const | fee, | ||
| ReadView const & | view, | ||
| beast::Journal const & | j | ||
| ) | 
Definition at line 754 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 810 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 839 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 868 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 882 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 901 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 912 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 955 of file InvariantCheck.cpp.
      
  | 
  private | 
Definition at line 324 of file InvariantCheck.h.
      
  | 
  private | 
Definition at line 326 of file InvariantCheck.h.