6namespace sysio {
namespace chain {
28 template<
typename... Ts>
71 return ((head_blocknum/0xffff)*0xffff) + head_blocknum%0xffff;
94 flat_set<public_key_type>& recovered_pub_keys,
95 bool allow_duplicate_keys =
false)
const;
101 for(
const auto& u :
a.authorization )
117 , signatures(signatures)
122 , signatures(signatures)
132 flat_set<public_key_type>& recovered_pub_keys,
133 bool allow_duplicate_keys =
false )
const;
149 :signatures(t.signatures), compression(_compression), unpacked_trx(t), trx_id(unpacked_trx.
id())
151 local_pack_transaction();
152 local_pack_context_free_data();
156 :signatures(t.signatures), compression(_compression), unpacked_trx(
std::move(t)), trx_id(unpacked_trx.
id())
158 local_pack_transaction();
159 local_pack_context_free_data();
168 return std::tie(lhs.signatures, lhs.compression, lhs.packed_context_free_data, lhs.packed_trx) ==
169 std::tie(rhs.signatures, rhs.compression, rhs.packed_context_free_data, rhs.packed_trx);
192 void local_unpack_transaction(
vector<bytes>&& context_free_data);
193 void local_unpack_context_free_data();
194 void local_pack_transaction();
195 void local_pack_context_free_data();
200 void reflector_init();
204 bytes packed_context_free_data;
222 (max_net_usage_words)(max_cpu_usage_ms)(delay_sec) )
transaction_extension_types::transaction_extension_t transaction_extension
std::shared_ptr< const packed_transaction > packed_transaction_ptr
unsigned __int128 uint128_t
uint128_t transaction_id_to_sender_id(const transaction_id_type &tid)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
#define FC_REFLECT_ENUM(ENUM, FIELDS)
#define FC_REFLECT_DERIVED(TYPE, INHERITS, MEMBERS)
Specializes fc::reflector for TYPE where type inherits other reflected classes.
defines visit functions for T Unless this is specialized, visit() will not be defined for T.
static constexpr uint16_t extension_id()
deferred_transaction_generation_context(const transaction_id_type &sender_trx_id, uint128_t sender_id, account_name sender)
transaction_id_type sender_trx_id
static constexpr bool enforce_unique()
deferred_transaction_generation_context()=default
std::variant< Ts... > transaction_extension_t
Immutable except for fc::from_variant.
bytes get_raw_transaction() const
packed_transaction & operator=(const packed_transaction &)=delete
packed_transaction()=default
packed_transaction(signed_transaction &&t, compression_type _compression=compression_type::none)
const bytes & get_packed_context_free_data() const
digest_type packed_digest() const
packed_transaction(const signed_transaction &t, compression_type _compression=compression_type::none)
const vector< signature_type > & get_signatures() const
uint32_t get_unprunable_size() const
time_point_sec expiration() const
uint32_t get_prunable_size() const
const fc::enum_type< uint8_t, compression_type > & get_compression() const
friend bool operator==(const packed_transaction &lhs, const packed_transaction &rhs)
const vector< bytes > & get_context_free_data() const
packed_transaction(packed_transaction &&)=default
const signed_transaction & get_signed_transaction() const
const transaction_id_type & id() const
const transaction & get_transaction() const
size_t get_estimated_size() const
packed_transaction & operator=(packed_transaction &&)=default
const bytes & get_packed_transaction() const
friend bool operator!=(const packed_transaction &lhs, const packed_transaction &rhs)
packed_transaction(const packed_transaction &)=default
vector< bytes > context_free_data
for each context-free action, there is an entry here
vector< signature_type > signatures
fc::microseconds get_signature_keys(const chain_id_type &chain_id, fc::time_point deadline, flat_set< public_key_type > &recovered_pub_keys, bool allow_duplicate_keys=false) const
signed_transaction(transaction &&trx, const vector< signature_type > &signatures, const vector< bytes > &context_free_data)
signed_transaction(transaction &&trx, const vector< signature_type > &signatures, vector< bytes > &&context_free_data)
const signature_type & sign(const private_key_type &key, const chain_id_type &chain_id)
signed_transaction()=default
uint32_t total_actions() const
vector< action > context_free_actions
extensions_type transaction_extensions
account_name first_authorizer() const
fc::microseconds get_signature_keys(const vector< signature_type > &signatures, const chain_id_type &chain_id, fc::time_point deadline, const vector< bytes > &cfd, flat_set< public_key_type > &recovered_pub_keys, bool allow_duplicate_keys=false) const
digest_type sig_digest(const chain_id_type &chain_id, const vector< bytes > &cfd=vector< bytes >()) const
transaction_id_type id() const
flat_multimap< uint16_t, transaction_extension > validate_and_extract_extensions() const