3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 03:35:52 +00:00

Fixed imported keys not being passed onto UTXOProvider

This commit is contained in:
Glenn Marien 2015-10-05 18:00:49 +02:00
parent 9ba1be762a
commit ce22d1a493

View File

@ -3971,7 +3971,8 @@ public class Wallet extends BaseTaggableObject
protected List<UTXO> getStoredOutputsFromUTXOProvider() throws UTXOProviderException {
UTXOProvider utxoProvider = checkNotNull(vUTXOProvider, "No UTXO provider has been set");
List<UTXO> candidates = new ArrayList<UTXO>();
List<DeterministicKey> keys = getActiveKeyChain().getLeafKeys();
List<ECKey> keys = getImportedKeys();
keys.addAll(getActiveKeyChain().getLeafKeys());
List<Address> addresses = new ArrayList<Address>();
for (ECKey key : keys) {
Address address = new Address(params, key.getPubKeyHash());