rippled
|
Class describing the consequences to the account of applying a transaction if the transaction consumes the maximum XRP allowed. More...
Public Types | |
enum | Category { normal = 0, blocker } |
Describes how the transaction affects subsequent transactions. More... | |
Public Member Functions | |
TxConsequences (NotTEC pfresult) | |
TxConsequences (STTx const &tx) | |
Constructor if the STTx has no notable consequences for the TxQ. More... | |
TxConsequences (STTx const &tx, Category category) | |
Constructor for a blocker. More... | |
TxConsequences (STTx const &tx, XRPAmount potentialSpend) | |
Constructor for an STTx that may consume more XRP than the fee. More... | |
TxConsequences (STTx const &tx, std::uint32_t sequencesConsumed) | |
Constructor for an STTx that consumes more than the usual sequences. More... | |
TxConsequences (TxConsequences const &)=default | |
Copy constructor. More... | |
TxConsequences & | operator= (TxConsequences const &)=default |
Copy assignment operator. More... | |
TxConsequences (TxConsequences &&)=default | |
Move constructor. More... | |
TxConsequences & | operator= (TxConsequences &&)=default |
Move assignment operator. More... | |
XRPAmount | fee () const |
Fee. More... | |
XRPAmount const & | potentialSpend () const |
Potential Spend. More... | |
SeqProxy | seqProxy () const |
SeqProxy. More... | |
std::uint32_t | sequencesConsumed () const |
Sequences consumed. More... | |
bool | isBlocker () const |
Returns true if the transaction is a blocker. More... | |
SeqProxy | followingSeq () const |
Private Attributes | |
bool | isBlocker_ |
Describes how the transaction affects subsequent transactions. More... | |
XRPAmount | fee_ |
Transaction fee. More... | |
XRPAmount | potentialSpend_ |
Does NOT include the fee. More... | |
SeqProxy | seqProx_ |
SeqProxy of transaction. More... | |
std::uint32_t | sequencesConsumed_ |
Number of sequences consumed. More... | |
Class describing the consequences to the account of applying a transaction if the transaction consumes the maximum XRP allowed.
Definition at line 45 of file applySteps.h.
Describes how the transaction affects subsequent transactions.
Enumerator | |
---|---|
normal | Moves currency around, creates offers, etc. |
blocker | Affects the ability of subsequent transactions to claim a fee. Eg. |
Definition at line 50 of file applySteps.h.
|
explicit |
Definition at line 320 of file applySteps.cpp.
|
explicit |
Constructor if the STTx has no notable consequences for the TxQ.
Definition at line 330 of file applySteps.cpp.
Constructor for a blocker.
Definition at line 341 of file applySteps.cpp.
Constructor for an STTx that may consume more XRP than the fee.
Definition at line 347 of file applySteps.cpp.
ripple::TxConsequences::TxConsequences | ( | STTx const & | tx, |
std::uint32_t | sequencesConsumed | ||
) |
Constructor for an STTx that consumes more than the usual sequences.
Definition at line 353 of file applySteps.cpp.
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
XRPAmount ripple::TxConsequences::fee | ( | ) | const |
Fee.
Definition at line 101 of file applySteps.h.
XRPAmount const& ripple::TxConsequences::potentialSpend | ( | ) | const |
Potential Spend.
Definition at line 108 of file applySteps.h.
SeqProxy ripple::TxConsequences::seqProxy | ( | ) | const |
Definition at line 115 of file applySteps.h.
std::uint32_t ripple::TxConsequences::sequencesConsumed | ( | ) | const |
Sequences consumed.
Definition at line 122 of file applySteps.h.
bool ripple::TxConsequences::isBlocker | ( | ) | const |
Returns true if the transaction is a blocker.
Definition at line 129 of file applySteps.h.
SeqProxy ripple::TxConsequences::followingSeq | ( | ) | const |
Definition at line 136 of file applySteps.h.
|
private |
Describes how the transaction affects subsequent transactions.
Definition at line 61 of file applySteps.h.
|
private |
Transaction fee.
Definition at line 63 of file applySteps.h.
|
private |
Does NOT include the fee.
Definition at line 65 of file applySteps.h.
|
private |
SeqProxy of transaction.
Definition at line 67 of file applySteps.h.
|
private |
Number of sequences consumed.
Definition at line 69 of file applySteps.h.