查看插件返回(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值一致。
版权属于:Surou
本文链接:https://www.bcskill.com/index.php/archives/896.html
欢迎添加区块链技术QQ群:791420381 <====> 社区提供付费服务:主链定制修改,环境搭建及日常运维,智能合约编写,技术架构设计,技术顾问等。收入主要用于社区服务器以及推广开支。详询加QQ652511569