-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Remove in-tree max-encoded-len and use the new SCALE codec crate instead
#9163
Conversation
6c8ca1f to
797dc90
Compare
|
With paritytech/parity-scale-codec#268 merged, |
coriolinus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine once the tests all pass.
|
As it turns out, if we want to proceed with using the pre-release, we need to explicitly select it (it's not considered SemVer-compatible), so this also requires:
|
|
I'll fix the merge conflict and update the UI test once #9163 (comment) progresses. |
a685105 to
f2d38cc
Compare
f2d38cc to
6719d01
Compare
bkchr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a side note, please stop using force pushes ;)
bkchr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a side note, please stop using force pushes ;)
max-encoded-len and use the new SCALE codec crate insteadmax-encoded-len and use the new SCALE codec crate instead
|
https://gitlab.parity.io/parity/substrate/-/jobs/997661#L332 That doesn't make any sense, Any ideas? |
|
bot merge |
|
Trying merge. |
* master: fix staking version in genesis (#9280) fix storage info for decl_storage (#9274) Authority_discovery: expose assimilate_storage with GenesisBuild (#9279) Update CODEOWNERS (#9278) Remove in-tree `max-encoded-len` and use the new SCALE codec crate instead (#9163) bump a bunch of deps in parity-common (#9263) Bump linregress due to security vulnerability (#9262) pallet macro: always generate storage info on pallet struct (#9246) Less duplication in test code (#9270) Add `Chilled` event to staking chill extrinsics (#9250)
Helps with #9140.
This PR uses the new version (git patch) of
parity-scale-codecthat's merged with the in-treemax-encoded-lencrate. Since we don't plan to use/release this crate, this aims to gauge if using a hypothetical new release of the scale codec crate keeps the build running and tests passing, so that we can safely migrate and remove themax-encoded-lencrate from the tree altogether.It's worth noting that the in-tree version had some explicit impls for primitive hash types that but it's cleaner to implement these directly in the
primitive-typescrate (see fe797ff comment).If the CI is green and this is accepted by reviews, we will need to release the locally patched crates to crates.io and then switch to them before this PR is merged.
Associated changes:
parity-scale-codec: https://github.com/paritytech/parity-scale-codec/compare/igor-max-encoded-lenprimitive-types: https://github.com/paritytech/parity-common/compare/igor-prim-types-new-codecpolkadot companion: paritytech/polkadot#3412