| 
    rippled
    
   | 
 
#include <RCLCensorshipDetector.h>

Classes | |
| struct | TxIDSeq | 
Public Types | |
| using | TxIDSeqVec = std::vector< TxIDSeq > | 
Public Member Functions | |
| RCLCensorshipDetector ()=default | |
| void | propose (TxIDSeqVec proposed) | 
| Add transactions being proposed for the current consensus round.   | |
| template<class Predicate > | |
| void | check (std::vector< TxID > accepted, Predicate &&pred) | 
| Determine which transactions made it and perform censorship detection.   | |
| void | reset () | 
| Removes all elements from the tracker.   | |
Private Attributes | |
| TxIDSeqVec | tracker_ | 
Friends | |
| bool | operator< (TxIDSeq const &lhs, TxIDSeq const &rhs) | 
| bool | operator< (TxIDSeq const &lhs, TxID const &rhs) | 
| bool | operator< (TxID const &lhs, TxIDSeq const &rhs) | 
Definition at line 33 of file RCLCensorshipDetector.h.
| using ripple::RCLCensorshipDetector< TxID, Sequence >::TxIDSeqVec = std::vector<TxIDSeq> | 
Definition at line 67 of file RCLCensorshipDetector.h.
      
  | 
  default | 
| void ripple::RCLCensorshipDetector< TxID, Sequence >::propose | ( | TxIDSeqVec | proposed | ) | 
Add transactions being proposed for the current consensus round.
| proposed | The set of transactions that we are initially proposing for this round. | 
Definition at line 81 of file RCLCensorshipDetector.h.
| void ripple::RCLCensorshipDetector< TxID, Sequence >::check | ( | std::vector< TxID > | accepted, | 
| Predicate && | pred | ||
| ) | 
Determine which transactions made it and perform censorship detection.
This function is called when the server is proposing and a consensus round it participated in completed.
| accepted | The set of transactions that the network agreed should be included in the ledger being built. | 
| pred | A predicate invoked for every transaction we've proposed but which hasn't yet made it. The predicate must be callable as: bool pred(TxID const&, Sequence) It must return true for entries that should be removed. | 
Definition at line 113 of file RCLCensorshipDetector.h.
| void ripple::RCLCensorshipDetector< TxID, Sequence >::reset | ( | ) | 
Removes all elements from the tracker.
Typically, this function might be called after we reconnect to the network following an outage, or after we start tracking the network.
Definition at line 138 of file RCLCensorshipDetector.h.
      
  | 
  friend | 
Definition at line 47 of file RCLCensorshipDetector.h.
      
  | 
  friend | 
Definition at line 55 of file RCLCensorshipDetector.h.
      
  | 
  friend | 
Definition at line 61 of file RCLCensorshipDetector.h.
      
  | 
  private | 
Definition at line 70 of file RCLCensorshipDetector.h.