It's very hard for me to determine which is correct. The balance you seem to think is incorrect is the one I thought correct.
Because change addresses are hidden; it's impossible to see which balance the two wallets disagree about. Can you make hiding change addresses optional?
I am thinking about that, but I am not sure if it's a good idea. It certainly opens a can of worms in terms of usability.
In the meantime you can view change addresses using the command line, with the -a option. try 'electrum addresses -ab'
I've just noticed that one address appears twice in the change list, and that that was the cause of the issue. I'm not sure how that happened - I didn't add anything to the change list - but it would be nice if the client were more robust there.
You manually removed an address throm the list of change addresses (the one you moved to the list of normal addresses).
Electrum detected that the list of change addresses was incomplete, and it regenerated the missing address. This is why you ended up with the same address being counted twice in your balance.
I think it's a bit unfair to call this a lack of robustness. Of course I could add code to detect duplicates in order to deal with that particular issue. However it is absolutely impossible to predict all the possible ways users can mess with their wallet file; there are probably millions of ways users may corrupt their wallet if they edit it manually, and it is not possible for a developer to deal with that. If you decide to manually edit your wallet, you should understand what you're doing, and at the very least expect consequences.
Thanks for fixing ecdsa.org; my client is not listing it so I can't confirm it matches yet.
note that you don't need to wait for it to be listed, you can type it manually.
Ah, cool thanks for the -ab switch. In a GUI you could always suffix the address with "(change)" or something. Personally I find it confusing for the Receipts tab to have a total less than my balance - one naturally wonders where the rest came from.
I didn't call it a lack of robustness - I said you could be more robust
A little different. But you should be aware that it's Electrum creating the duplicates *in the change list*, not across both lists. It just happened again with another new address - it appeared twice in the change address list. Yes, I realize I ultimately caused this issue by trying to be smart, but Electrum keeps compounding the error. You understand the logic of how the client works so I'm sure you can figure out how this happens. I understand your point about endless ways the wallet can be corrupted, and it was my fault, but double-counting (even if listed twice) seems like a basic thing to guard against. Again - it's Electrum that has been adding the duplicates of addresses, not me.
Please take it as constructive criticism the way I intend it. I donated 1BTC to your address 1NTiGdrGgQrA46x9dv7XKhznKgcHrhVxo a couple of days ago. I will definitely donate more as the client improves.
I can confirm ecdsa.org is good.
Thanks again.