Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

u32 Refcounts, plus migration #7164

Merged
10 commits merged into from
Sep 22, 2020
Merged

u32 Refcounts, plus migration #7164

10 commits merged into from
Sep 22, 2020

Conversation

gavofyork
Copy link
Member

It is quite conceivable that runtimes will need more than 256 reference locks on accounts, especially with multi-asset pallets.

This switches the count type to u32.

A migration is needed.

@gavofyork gavofyork added A0-please_review Pull request needs code review. B7-runtimenoteworthy C1-low PR touches the given topic and has a low impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Sep 21, 2020
Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@apopiak
Copy link
Contributor

apopiak commented Sep 22, 2020

This would make for a good candidate to try out a different migration process where we extract the migration.

@gnunicorn
Copy link
Contributor

bot merge

@ghost
Copy link

ghost commented Sep 22, 2020

Trying merge.

@ghost ghost merged commit f515b32 into master Sep 22, 2020
@ghost ghost deleted the gav-u32-refcount branch September 22, 2020 16:20
LaurentTrk added a commit to LaurentTrk/go-substrate-rpc-client that referenced this pull request Oct 5, 2020
mikiquantum pushed a commit to centrifuge/go-substrate-rpc-client that referenced this pull request Oct 6, 2020
* Add metadata V12

* FIX AccountInfo Refcount should be unsigned 32 (see paritytech/substrate#7164)

* FIX Use Module index when looking for Call index

* FIX Use released v2.0.0 substrate version

* FIX Goimports types/metadataV12.go

* FIX Add some unit tests

* Remove run-substrate-docker v1 makefile target.

Co-authored-by: Laurent Turek <laurent.turek@gmail.com>
@antonkhvorov
Copy link

It was fun seeing billions of USD on my balance in Fearless Wallet :D

@s3krit s3krit added D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Oct 9, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants