mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 00:28:01 +00:00
e8f7c81db6
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>
12 lines
417 B
Plaintext
12 lines
417 B
Plaintext
title: "Balances: add failsafe for consumer ref underflow"
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
Pallet balances now handles the case that historic accounts violate a invariant that they should have a consumer ref on `reserved > 0` balance.
|
|
This disallows such accounts from reaping and should prevent TI from getting messed up even more.
|
|
|
|
crates:
|
|
- name: pallet-balances
|
|
bump: patch
|