1

For a private network to remove ram net cpu i set the resource limit to unlimited for each newaccount created. By chaging set_resource_limits to set_resource_limits( newact, -1, -1, -1 ); //unlimited resources

Is it possible to and should I alter the userres and delegatebw tables ? maybe set the net/cpu weight to -1 or unlimited if possible to do so

Do the values in userres table matter after we set_resource_limit to unlimited?

What other changes should be made to make accounts completely free from ram net and cpu?

P.S I am aware this approach of removing ram CPU and net is not sound at all.

Image showing unlimited account throwing CPU limit error enter image description here

1 Answer 1

1

userres table does nothing about resource (CPU/NET) allocation and consumption. It depends on set_resource_limits only, and userres or delband manage staked or delegated amount of EOS and make it available to utilize this information from eosio and other accounts' contract.

4
  • After changing to set_resource_limits( newact, -1, -1, -1 ) I used this command to create a newaccount cleos system newaccount tester3 --transfer tester.11 PB_KEY --stake-net "0.0001 ILO" --stake-cpu "0.0001 ILO" --buy-ram-kbytes 8 -p tester3@active It was created successfully but when I tried to push some action with tester.11 I got Error 3080004:Transaction exceeded the current CPU usage limit imposed on the transaction Error Details: billed CPU time (586 us) is greater than the maximum billable CPU time for the transaction (21 us) How could this happen with unlimited resources Oct 26, 2020 at 13:08
  • Check cleos get account tester.11. Is CPU and NET set unlimited?
    – conr2d
    Oct 27, 2020 at 1:08
  • YesI I have edited the question and added an image there showing unlimited account throwing exceeding cpu limit error. Oct 27, 2020 at 6:06
  • 1
    CPU and NET bandwidth are measured in the finalization step of transaction execution. If you send delegatebw for unlimited account itself, set_resource_limits() will be called with positive values (staked amount here) and unlimited resources are cancelled.
    – conr2d
    Oct 27, 2020 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.