In chain_config.hpp I need a new field "alfa_opt".

struct chain_config {
   uint32_t   max_block_cpu_usage;                 ///< the maxiumum billable cpu usage (in microseconds) for a block
   uint32_t   alfa_opt; /// < my parameter

But when I add it to "FC_REFLECT" item:



           (alfa_opt) // <=== that one (1)                                                        

Then unit tests

unittests/unit_test -t eosio_system_tests/setparams -- --wabt

failed with

"3080004 tx_cpu_usage_exceeded: Transaction exceeded the current CPU usage limit imposed on the transaction"

When I comment line (1), then test will be passed.

1) Why is that relation between field and tx_cpu_usage exists?

2) What is true-way to add a new field to chain_config?

Thank You!

1 Answer 1


Yes there is relation between fields and eos resources because by adding that field to your code it will take more ram,cpu and bandwith to process.,To resolve this issue stake more resources than current staked resources.


Your Answer

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

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