6 #ifndef KAGOME_CORE_PRIMITIVES_TRANSACTION_VALIDITY_HPP 7 #define KAGOME_CORE_PRIMITIVES_TRANSACTION_VALIDITY_HPP 12 #include <boost/variant.hpp> 64 std::vector<Transaction::Tag>
129 typename = std::enable_if_t<Stream::is_encoder_stream>>
134 return s << static_cast<uint8_t>(v) - 1;
138 typename = std::enable_if_t<Stream::is_decoder_stream>>
167 typename = std::enable_if_t<Stream::is_encoder_stream>>
172 return s << static_cast<uint8_t>(v) - 1;
176 typename = std::enable_if_t<Stream::is_decoder_stream>>
194 boost::variant<InvalidTransaction, UnknownTransaction>;
201 boost::variant<ValidTransaction, TransactionValidityError>;
207 #endif // KAGOME_CORE_PRIMITIVES_TRANSACTION_VALIDITY_HPP
General error to do with the transaction's proofs (e.g. signature).
The transaction birth block is ancient.
std::vector< Transaction::Tag > requires
Transaction dependencies A non-empty list signifies that some other transactions which provide given ...
boost::variant< InvalidTransaction, UnknownTransaction > TransactionValidityError
No validator found for the given unsigned transaction.
Stream & operator>>(Stream &s, ArithmeticError &v)
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)
UnknownTransaction
An unknown transaction validity.
std::vector< Transaction::Tag > provides
Provided tags A list of tags this transaction provides. Successful transaction import will enable oth...
Information concerning a valid transaction.
The call of the transaction is not expected.
boost::variant< ValidTransaction, TransactionValidityError > TransactionValidity
Stream & operator<<(Stream &s, const ArithmeticError &v)
libp2p::connection::Stream Stream
uint64_t Priority
Priority for a transaction. Additive. Higher is better.
Any other custom invalid validity that is not covered by this enum.
InvalidTransaction
Transaction is invalid. Details are described by the error code.