diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-16 17:17:39 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-16 17:36:04 +0100 |
| commit | 16ec9044d1f2eda7c5c86fcb73c839e17fb35db3 (patch) | |
| tree | 9f7e2e34445fc56cee7530dc2ba545314235525c /src/sync.cpp | |
| parent | Merge pull request #3425 (diff) | |
| download | discoin-16ec9044d1f2eda7c5c86fcb73c839e17fb35db3.tar.xz discoin-16ec9044d1f2eda7c5c86fcb73c839e17fb35db3.zip | |
Don't create empty transactions when reading corrupted wallet
The current transaction loading code is not exception safe.
An exception during deserialization causes an empty transaction
to be left behind in the wallet.
Fix this by building the transaction separately and adding
it only to the wallet at the end.
Fixes #3333.
Diffstat (limited to 'src/sync.cpp')
0 files changed, 0 insertions, 0 deletions