查看插件返回(github)
rm.get_account_limits( result.account_name, result.ram_quota, result.net_weight, result.cpu_weight );
查看资源设置(github)
set_resource_limits( res_itr->owner, res_itr->ram_bytes + ram_gift_bytes, net, cpu );
结论
ram_bytes
是实际买的RAM 大小,ram_quota
是加上了 赠送的ram_gift_bytes
(等于1400)(github)
验证
cleos -u https://api.eoslaomao.com get account bcskillsurou
返回
memory:
quota: 4.348 KiB used: 3.49 KiB
查看账户资源表
cleos -u https://api.eoslaomao.com get table eosio bcskillsurou userres
返回
{
"rows": [{
"owner": "bcskillsurou",
"net_weight": "0.0046 EOS",
"cpu_weight": "0.0147 EOS",
"ram_bytes": 3052
}
],
"more": false,
"next_key": ""
}
计算
quota 与 ram_bytes差值等于 1400,与ram_gift_bytes值一致。
版权属于:区块链中文技术社区 / 转载原创者
本文链接:https://bcskill.com/index.php/archives/896.html
相关技术文章仅限于相关区块链底层技术研究,禁止用于非法用途,后果自负!本站严格遵守一切相关法律政策!