Make it clear segwit is not used for the trade protocol yet.

This commit is contained in:
Oscar Guindzberg 2020-10-05 16:50:14 -03:00
parent 86ddd06e27
commit b9e404f0e2
No known key found for this signature in database
GPG Key ID: 209796BF2E1D4F75

View File

@ -579,6 +579,7 @@ public class BtcWalletService extends WalletService {
if (addressEntry.isPresent()) {
return addressEntry.get();
} else {
// We still use non-segwit addresses for the trade protocol.
// We try to use available and not yet used entries
Optional<AddressEntry> emptyAvailableAddressEntry = getAddressEntryListAsImmutableList().stream()
.filter(e -> AddressEntry.Context.AVAILABLE == e.getContext())