AddressEntryList: arbitrator entry use P2PKH

This commit is contained in:
Oscar Guindzberg 2020-09-25 02:12:52 -03:00
parent a3708485f9
commit a9cc28f65a
No known key found for this signature in database
GPG key ID: 209796BF2E1D4F75

View file

@ -137,7 +137,8 @@ public final class AddressEntryList implements PersistableEnvelope, PersistedDat
toBeRemoved.forEach(entrySet::remove); toBeRemoved.forEach(entrySet::remove);
} else { } else {
// As long the old arbitration domain is not removed from the code base we still support it here. // As long the old arbitration domain is not removed from the code base we still support it here.
entrySet.add(new AddressEntry(wallet.freshReceiveKey(), AddressEntry.Context.ARBITRATOR, true)); DeterministicKey key = (DeterministicKey) wallet.findKeyFromAddress(wallet.freshReceiveAddress(Script.ScriptType.P2PKH));
entrySet.add(new AddressEntry(key, AddressEntry.Context.ARBITRATOR, false));
} }
// In case we restore from seed words and have balance we need to add the relevant addresses to our list. // In case we restore from seed words and have balance we need to add the relevant addresses to our list.