struct resource_usage_object
{
id_type id;
account_name owner; //< owner should not be changed within a chainbase modifier lambda
usage_accumulator net_usage;
usage_accumulator cpu_usage;
uint64_t ram_usage = 0;
}
resource_limits_object 購買的資源
struct resource_limits_object : public chainbase::object<resource_limits_object_type, resource_limits_object> {
OBJECT_CTOR(resource_limits_object)
id_type id;
account_name owner; //< owner should not be changed within a chainbase modifier lambda
bool pending = false; //< pending should not be changed within a chainbase modifier lambda
int64_t net_weight = -1;
int64_t cpu_weight = -1;
int64_t ram_bytes = -1;
};