Nightly protocol runtime config includes wrong regular_op_cost #5094
Labels
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
T-core
Team: issues relevant to the core team
This line is wrong:
nearcore/nearcore/res/runtime_configs/123.json
Line 154 in 5cbb3a3
It should say this instead:
nearcore/nearcore/res/runtime_configs/48.json
Line 154 in 5cbb3a3
This'll probably get caught once #4961 is implemented. But I wonder if we should improve, mid-term, how we represent config changes?
Configuration bugs are notorious for causing outages, this is the evidence that "let's just dump config to JSON" is not fool-proof enough.
I think it makes sense to refactor the code to allow storing just diffs, which explicitly say "we change from this value to this value".
I am also 0.7 sure that for source of truth for costs, we should switch from JSON to plain-text readable format from estimator:
https://github.com/near/nearcore/blob/master/runtime/runtime-params-estimator/costs.txt
but that is blocked on #4633
The text was updated successfully, but these errors were encountered: