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?
EOS.IO Stack Exchange is a question and answer site for users and developers of distributed applications built on top of the blockchain operating system, EOS.IO. It only takes a minute to sign up.
Sign up to join this communityYes, 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
Oct 19, 2018 at 15:17