Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
transaction.cpp
Go to the documentation of this file.
4
5namespace sysio { namespace chain { namespace webassembly {
7 //TODO: Why is this limit even needed? And why is it not consistently checked on actions in input or deferred transactions
8 SYS_ASSERT( data.size() < context.control.get_global_properties().configuration.max_inline_action_size, inline_action_too_big,
9 "inline action too big" );
10
11 action act;
12 fc::raw::unpack<action>(data.data(), data.size(), act);
13 context.execute_inline(std::move(act));
14 }
15
17 //TODO: Why is this limit even needed? And why is it not consistently checked on actions in input or deferred transactions
18 SYS_ASSERT( data.size() < context.control.get_global_properties().configuration.max_inline_action_size, inline_action_too_big,
19 "inline action too big" );
20
21 action act;
22 fc::raw::unpack<action>(data.data(), data.size(), act);
23 context.execute_context_free_inline(std::move(act));
24 }
25
27 transaction trx;
28 fc::raw::unpack<transaction>(data.data(), data.size(), trx);
29 context.schedule_deferred_transaction(*sender_id, payer, std::move(trx), replace_existing);
30 }
31
33 return context.cancel_deferred_transaction( *val );
34 }
35}}} // ns sysio::chain::webassembly
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
void send_context_free_inline(legacy_span< const char > data)
bool cancel_deferred(legacy_ptr< const uint128_t > val)
void send_deferred(legacy_ptr< const uint128_t > sender_id, account_name payer, legacy_span< const char > data, uint32_t replace_existing)
void send_inline(legacy_span< const char > data)
void unpack(Stream &s, std::deque< T > &value)
Definition raw.hpp:540
unsigned int uint32_t
Definition stdint.h:126
Immutable except for fc::from_variant.
Definition name.hpp:43