v0.100.0-rc2 #2840
doitian
announced in
Announcements
v0.100.0-rc2
#2840
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an RC version to preview the changes in the next release.
The version v0.100.0 will bring hard fork upgrades to CKB. These features will be enabled when starting a new dev chain, but they are disabled when running testnet and mainnet so it is still compatible with the current mainnet (Lina) and testnet (Aggron). However, it will introduce many breaking changes:
uncles_hash
inheader
will be renamed toextra_hash
for all JSON RPC methods.hash_type
has a new allowed value "data1" but it is only valid after hard fork activation.OutputsValidator
in the JSON RPCsend_transaction
iswell_known_scripts_only
now. See feat: change defaultOutputsValidator
towell_known_scripts_only
#2821 for details.See nervosnetwork/rfcs#242 for an overview of all the hard fork features.
Changes since v0.43.0
Features
feat(hardfork): ckb2021 hardfork features #2715 hardfork: ckb2021 hardfork features (@yangby-cryptape)
See RFC37: ckb2021 overview rfcs#242
feat(hardfork): ckb2021 hardfork features (vm related part) #2756 hardfork: Ckb2021 hardfork features (vm related part) (@yangby-cryptape)
See RFC37: ckb2021 overview rfcs#242
refactor(hardfork): change field "hash_type" to an enumerated type #2818 hardfork: Change field "hash_type" to an enumerated type (@yangby-cryptape)
BREAKING CHANGES: Revert breaking changes which were introduced in feat(hardfork): ckb2021 hardfork features (vm related part) #2756.
feat(hardfork): net hardfork #2796 hardfork: Net hardfork (@driftluo)
See RFC35: ckb2021 P2P protocol upgrade rfcs#234
feat(hardfork): reject vm1 lock script before hardfork started to keep compatible with old clients #2797 hardfork: Reject vm1 lock script before hardfork started to keep compatible with old clients (@yangby-cryptape)
feat(hardfork): remove the header deps immature rule #2798 hardfork: Remove the header deps immature rule (@yangby-cryptape)
feat: only send notifications when service is stated #2819: Only send notifications when service is stated (@zhangsoledad)
feat: prepend the binary version to BlockAssemblerConfig message #2817: Prepend the binary version to BlockAssemblerConfig message (@quake)
feat: change default
OutputsValidator
towell_known_scripts_only
#2821: Change defaultOutputsValidator
towell_known_scripts_only
(@quake)refactor(hardfork): verify the epoch in since more strictly #2792 hardfork: Verify the epoch in since more strictly (@yangby-cryptape)
epoch_index
is less thanepoch_length
or bothepoch_index
andepoch_length
are zero.See more in RFC30: Ensure that index is less than length in input since field using epoch. rfcs#223
refactor(hardfork): rename JSON RPC field "uncles_hash" to "extra_hash" #2776 hardfork: Rename JSON RPC field "uncles_hash" to "extra_hash" (@yangby-cryptape)
resumeble verification #2799: Resumeble verification (@zhangsoledad)
Bug Fixes
fix: put migration version #2785: Put migration version (@zhangsoledad)
A bug introduced by 220464f, cause the migration version do not put in the new created DB.
fix: fix peer store evict #2827: Fix peer store evict (@driftluo)
Originally, only the data in the largest group was considered, but now it is changed to traverse at least half of the groups
Improvements
perf: avoid unnecessary db creation #2755: Avoid unnecessary db creation (@zhangsoledad)
perf: replace RwLock/Mutex<HashMap/HashSet> with DashMap #2685: Replace
RwLock/Mutex<HashMap/HashSet>
with DashMap (@quake)refactor: move state flag to
HeadersSyncState
enum #2736: Move state flag toHeadersSyncState
enum (@quake)We are using 3 fields
sync_started
/sync_connected
/not_sync_until
in the headers sync process, this PR refactored them to a state machine enumHeadersSyncState
perf: use KeyedPriorityQueue to replace BTreeMap/HashSet #2707: Use KeyedPriorityQueue to replace BTreeMap/HashSet (@quake)
refactor: verify the epoch in block headers explicitly #2791: Verify the epoch in block headers explicitly (@yangby-cryptape)
The data of epoch in bytes is not same as the
EpochNumberWithFraction
, which causes a few unintended consequences.refactor: compatibility policy for configuration files #2822: Compatibility policy for configuration files (@yangby-cryptape)
Deny unknown configuration items.
To avoid several kinds of mistakes, for example, typos.
Allow deprecated configuration items, but they will be ignored; and warning messages will be output.
After several versions, if these deprecated items satisfied any of the following conditions, they will be fully removed (denied):
The default configuration files will not include any deprecated configuration items.
The default configuration files will not enable any experimental configuration items.
doc: use community contributed site for script error codes #2770: Use community contributed site for script error codes (@doitian)
feat: give an unique id to each global runtime thread #2779: Give an unique id to each global runtime thread (@yangby-cryptape)
This discussion was created from the release v0.100.0-rc2.
Beta Was this translation helpful? Give feedback.
All reactions