conststaticuint32_tdefault_base_per_transaction_net_usage=12;// 12 bytes (11 bytes for worst case of transaction_receipt_header + 1 byte for static_variant tag)
conststaticuint32_tdefault_net_usage_leeway=500;// TODO: is this reasonable?
conststaticuint32_tdefault_context_free_discount_net_usage_num=20;// TODO: is this reasonable?
EOS_ASSERT(std::numeric_limits<decltype(value_ex)>::max()-value_ex>=value_ex_contrib,rate_limiting_state_inconsistent,"Overflow in accumulated value when adding usage!");
if(last_ordinal!=ordinal){
if(ordinal<=last_ordinal)
wdump((ordinal)(last_ordinal));
FC_ASSERT(ordinal>last_ordinal,"new ordinal cannot be less than the previous ordinal");
/// the maximum number of network usage bytes the transaction can consume (ignoring what billable accounts can pay and ignoring the remaining usage available in the block)
uint64_tmax_net=0;
uint64_teager_net_limit=0;
/// the maximum number of virtual CPU instructions of the transaction that can be safely billed to the billable accounts