Wallet balance is incorrect after reverting a block containing transactions
When reverting a block, we gather the sources written for the block here:
But the problem is that we delete these sources few moments before, so there is nothing to add or substract from the balance. It becomes wrong!