EOS account下的ram_quota与ram_bytes有什么关系
查看插件返回(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值一致。
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »