Kagome
Polkadot Runtime Engine in C++17
transaction.hpp File Reference
Include dependency graph for transaction.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::primitives::Transaction
 

Namespaces

 kagome::primitives
 

Functions

bool kagome::primitives::operator== (const Transaction &v1, const Transaction &v2)
 

Class Documentation

struct kagome::primitives::Transaction

Definition at line 14 of file transaction.hpp.

Collaboration diagram for kagome::primitives::Transaction:
Class Members
typedef Hash256 Hash Hash of tx.
typedef uint64_t Longevity

Minimum number of blocks a transaction will remain valid for. TransactionLongevity::max_value() means "forever".

typedef uint64_t Priority Priority for a transaction. Additive. Higher is better.
typedef vector< uint8_t > Tag

Tag for a transaction. No two transactions with the same tag should be placed on-chain.

Class Members
size_t bytes Number of bytes encoding of the transaction requires.
Extrinsic ext Raw extrinsic representing that transaction.
Hash hash Extrinsic hash (non-unique)
Priority priority Transaction priority (higher = better)
vector< Tag > provides Tags that this transaction provides.
vector< Tag > requires Tags required by the transaction.
bool should_propagate Should that transaction be propagated.
Longevity valid_till At which block the transaction becomes invalid?