When you commit your eos for staking to get cpu and net. Do these resources stack on top of another?
As in if I earned 10 cpu and 10 net one day. I get 20 cpu and 20 bandwidth the next day?
Yes, if you delegatebw
multiple times, the values stack.
You can verify this in contracts/eosio.system/delegate_bandwidtth.cpp
:
totals_tbl.modify( tot_itr, from == receiver ? from : 0, [&]( auto& tot ) {
tot.net_weight += stake_net_delta;
tot.cpu_weight += stake_cpu_delta;
});
cleos system delegatebw [OPTIONS] from receiver stake_net_quantity stake_cpu_quantity
multiple times
Commented
Oct 19, 2018 at 15:17