Kagome
Polkadot Runtime Engine in C++17
|
Information concerning a valid transaction. More...
#include <transaction_validity.hpp>
Public Member Functions | |
SCALE_TIE (5) | |
Public Attributes | |
Transaction::Priority | priority {} |
Priority of the transaction. Priority determines the ordering of two transactions that have all their dependencies (required tags) satisfied. More... | |
std::vector< Transaction::Tag > | requires |
Transaction dependencies A non-empty list signifies that some other transactions which provide given tags are required to be included before that one. More... | |
std::vector< Transaction::Tag > | provides |
Provided tags A list of tags this transaction provides. Successful transaction import will enable other transactions that depend on (require) those tags to be included as well. Provided and requried tags allow Substrate to build a dependency graph of transactions and import them in the right (linear) order. More... | |
Transaction::Longevity | longevity {} |
Transaction longevity Longevity describes minimum number of blocks the validity is correct. After this period transaction should be removed from the pool or revalidated. More... | |
bool | propagate {} |
A flag indicating if the transaction should be propagated to other peers. By setting false here the transaction will still be considered for including in blocks that are authored on the current node, but will never be sent to other peers. More... | |
Information concerning a valid transaction.
This is the same structure as in https://github.com/paritytech/substrate/blob/a31c01b398d958ccf0a24d8c1c11fb073df66212/core/sr-primitives/src/transaction_validity.rs#L178
Definition at line 49 of file transaction_validity.hpp.
kagome::primitives::ValidTransaction::SCALE_TIE | ( | 5 | ) |
Transaction::Longevity kagome::primitives::ValidTransaction::longevity {} |
Transaction longevity Longevity describes minimum number of blocks the validity is correct. After this period transaction should be removed from the pool or revalidated.
Definition at line 83 of file transaction_validity.hpp.
Transaction::Priority kagome::primitives::ValidTransaction::priority {} |
Priority of the transaction. Priority determines the ordering of two transactions that have all their dependencies (required tags) satisfied.
Definition at line 57 of file transaction_validity.hpp.
bool kagome::primitives::ValidTransaction::propagate {} |
A flag indicating if the transaction should be propagated to other peers. By setting false
here the transaction will still be considered for including in blocks that are authored on the current node, but will never be sent to other peers.
Definition at line 91 of file transaction_validity.hpp.
std::vector<Transaction::Tag> kagome::primitives::ValidTransaction::provides |
Provided tags A list of tags this transaction provides. Successful transaction import will enable other transactions that depend on (require) those tags to be included as well. Provided and requried tags allow Substrate to build a dependency graph of transactions and import them in the right (linear) order.
Definition at line 75 of file transaction_validity.hpp.
std::vector<Transaction::Tag> kagome::primitives::ValidTransaction::requires |
Transaction dependencies A non-empty list signifies that some other transactions which provide given tags are required to be included before that one.
Definition at line 65 of file transaction_validity.hpp.