3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

Fix a casting bug in WalletAppKit. Thanks to Kalpesh Parmar.

This commit is contained in:
Mike Hearn 2014-03-31 16:28:10 +02:00
parent 4df59adeb9
commit d9fa9e4b68

View File

@ -224,8 +224,9 @@ public class WalletAppKit extends AbstractIdleService {
try {
List<WalletExtension> extensions = provideWalletExtensions();
vWallet = new Wallet(params);
WalletExtension[] extArray = extensions.toArray(new WalletExtension[extensions.size()]);
Protos.Wallet proto = WalletProtobufSerializer.parseToProto(walletStream);
new WalletProtobufSerializer().readWallet(params, (WalletExtension[]) extensions.toArray(), proto);
new WalletProtobufSerializer().readWallet(params, extArray, proto);
if (shouldReplayWallet)
vWallet.clearTransactions(0);
} finally {