rippled
|
Used to represent an account to the queue, and stores the transactions queued for that account by SeqProxy. More...
Public Types | |
using | TxMap = std::map< SeqProxy, MaybeTx > |
Public Member Functions | |
TxQAccount (std::shared_ptr< STTx const > const &txn) | |
Construct from a transaction. More... | |
TxQAccount (const AccountID &account) | |
Construct from an account. More... | |
std::size_t | getTxnCount () const |
Return the number of transactions currently queued for this account. More... | |
bool | empty () const |
Checks if this account has no transactions queued. More... | |
TxMap::const_iterator | getPrevTx (SeqProxy seqProx) const |
Find the entry in transactions that precedes seqProx, if one does. More... | |
MaybeTx & | add (MaybeTx &&) |
Add a transaction candidate to this account for queuing. More... | |
bool | remove (SeqProxy seqProx) |
Remove the candidate with given SeqProxy value from this account. More... | |
Public Attributes | |
const AccountID | account |
The account. More... | |
TxMap | transactions |
Sequence number will be used as the key. More... | |
bool | retryPenalty = false |
bool | dropPenalty = false |
Used to represent an account to the queue, and stores the transactions queued for that account by SeqProxy.
|
explicit |
|
explicit |
std::size_t ripple::TxQ::TxQAccount::getTxnCount | ( | ) | const |
bool ripple::TxQ::TxQAccount::empty | ( | ) | const |
TxQ::TxQAccount::TxMap::const_iterator ripple::TxQ::TxQAccount::getPrevTx | ( | SeqProxy | seqProx | ) | const |
TxQ::MaybeTx & ripple::TxQ::TxQAccount::add | ( | MaybeTx && | txn | ) |
bool ripple::TxQ::TxQAccount::remove | ( | SeqProxy | seqProx | ) |
TxMap ripple::TxQ::TxQAccount::transactions |