mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
WalletProtobufSerializer: Clear txMap after reading.
Resolves issue 380.
This commit is contained in:
parent
616b4a5a7d
commit
7307308915
1 changed files with 3 additions and 0 deletions
|
@ -394,6 +394,9 @@ public class WalletProtobufSerializer {
|
||||||
wallet.setVersion(walletProto.getVersion());
|
wallet.setVersion(walletProto.getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure the object can be re-used to read another wallet without corruption.
|
||||||
|
txMap.clear();
|
||||||
|
|
||||||
return wallet;
|
return wallet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue