本文共 738 字,大约阅读时间需要 2 分钟。
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;}
struct resource_limits_object : public chainbase::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; };
转载地址:http://rbmub.baihongyu.com/