You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it changed, the chain state will be changed, then it is a consensus parameter.
Why I propose this feature?
Same reason as #1275: the executable binary should be halt when it found the consensus parameters are changed, to make sure no inconsistent data are stored.
My solution is:
Serialize all consensus parameters in a specify order and calculate a hash, store the hash into storage, check it when axon runs.
Does consensus.sync_txs_chunk_size affect the consensus?
No. It only controls how many transactions that will be pull once to reduce the press of network.
Besides accounts and consensus.sync_txs_chunk_size, is there any other parameters can affect the consensus?
For example, crosschain_contract_address, wckb_contract_address, executor.light.
These three configs should be removed. They are outdated.
Contact Details
No response
Propose-a-new-feature
What is "consensus parameters"?
If it changed, the chain state will be changed, then it is a consensus parameter.
Why I propose this feature?
Same reason as #1275: the executable binary should be halt when it found the consensus parameters are changed, to make sure no inconsistent data are stored.
My solution is:
But the problem is:
In axon's config.toml:
accounts
section are consensus parameters.axon/devtools/chain/config.toml
Lines 10 to 12 in 8f3eded
consensus
section is consensus parameters.axon/devtools/chain/config.toml
Lines 65 to 66 in 8f3eded
But, other parameters are not consensus parameters, for example,
http_listening_address
,maxconn
andlog_path
.In future, there will be more consensus parameters, such as
contract_limit
,hardfork_height
.So, if those consensus parameters are split, things will be easier.
Alternatives you've considered
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: