Bugfix: don't throw away deserialized wallet in WalletAppKit

This commit is contained in:
Mike Hearn 2014-04-04 17:42:58 +02:00
parent ef95eb3b79
commit c8850c94ae

View File

@ -226,7 +226,7 @@ public class WalletAppKit extends AbstractIdleService {
vWallet = new Wallet(params);
WalletExtension[] extArray = extensions.toArray(new WalletExtension[extensions.size()]);
Protos.Wallet proto = WalletProtobufSerializer.parseToProto(walletStream);
new WalletProtobufSerializer().readWallet(params, extArray, proto);
vWallet = new WalletProtobufSerializer().readWallet(params, extArray, proto);
if (shouldReplayWallet)
vWallet.clearTransactions(0);
} finally {