-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Electrum fixes and improvements (#873)
* Electrum: don't ask for merkle proofs for unconfirmed txs * Electrum: clear status when we get disconnected and still have pending history transactions When we get disconnected and have script hashes for which we still have pending connections, clear the script hash status. When we reconnect we will ask for its history again, this way we won't miss anything. Since we rotate keys it should not result in heavy traffic (script hashes have few history items). * Electrum: represent and persist block heights as 32 bits signed ints Int.MaxValue is about 40,000 years of block which should be enough, and it will fix the encoding problem users on testnet when there's a reorg and one of their txs has a height of -1. Side-note: changing the wallet codec can be done easily: if we cannot read and decode persisted data we just start with an empty wallet and retrieve all wallet data from electrum servers, and once it's ready it will be encoded with the new codec and saved. * Electrum persistence: include a version number It provides a clean way, when upgrading the app, of choosing whether to keep the same version and start from the last persisted wallet (if the persistence format has not been changed or is compatible with the old one), or to change the version and force starting from an empty wallet and downloading all wallet items from Electrum servers. * ElectrumClient: remove useless buffer
- Loading branch information
Showing
5 changed files
with
56 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters