darwinia-network / darwinia-common

Darwinia Runtime Pallet Library and Pangolin/Pangoro Testnet
https://rust-docs.darwinia.network/darwinia-common
GNU General Public License v3.0
30 stars 9 forks source link

Should not reap ledger during bond #122

Closed hackfisher closed 2 years ago

hackfisher commented 4 years ago

May be we should add trait "clear_data()" for each pallet module for they to clear unused data.

And clear_data() can be called during transfer in balance module.

AurevoirXavier commented 3 years ago

Without the withdraw_unbond, some locks will be left in the system.

AurevoirXavier commented 3 years ago

Unused data in Crab 5C6bMMPaSxfcquDEeZ5MQQNFACRABHm8wnqYDS93Ju9AXpp2 5EcLCgMC4Rc7wisVTwXem4D179wwYyV4QhUT7y1FcP8FXbqe

hackfisher commented 2 years ago

Related to some confusion found recently in apps by @JayJay1024

hackfisher commented 2 years ago

Related: https://github.com/darwinia-network/darwinia-2.0/issues/63

AurevoirXavier commented 2 years ago

Close, as we have withdraw_unbond now.

How to deal with the old data, see darwinia-network/darwinia-2.0#63.