Skip to content

[pallet-balances] backport #3865#4398

Merged
ggwpez merged 3 commits intorelease-crates-io-v1.7.0from
oty-backport-balances-170
May 13, 2024
Merged

[pallet-balances] backport #3865#4398
ggwpez merged 3 commits intorelease-crates-io-v1.7.0from
oty-backport-balances-170

Conversation

@ggwpez
Copy link
Member

@ggwpez ggwpez commented May 7, 2024

Backporting #3865 to 1.7 crates release for the pallet-balances.

There are some accounts that do not have a consumer ref while having a
reserve.
This adds a fail-safe mechanism to trigger in the case that
`does_consume` is true, but the assumption of `consumer>0` is not.

This should prevent those accounts from loosing balance and the TI from
getting messed up even more, but is not an "ideal" fix. TBH an ideal fix
is not possible, since on-chain data is in an invalid state.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This reverts commit b8828a2.
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6186519

@ggwpez ggwpez merged commit ca076ed into release-crates-io-v1.7.0 May 13, 2024
@ggwpez ggwpez deleted the oty-backport-balances-170 branch May 13, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants