mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-07-05 21:11:36 +02:00
only follow paynym if bip47 wallet is loaded
This commit is contained in:
@ -333,7 +333,7 @@ public class CounterpartyController extends SorobanController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void followPaymentCode(Soroban soroban, PaymentCode paymentCodeInitiator) {
|
private void followPaymentCode(Soroban soroban, PaymentCode paymentCodeInitiator) {
|
||||||
if(Config.get().isUsePayNym()) {
|
if(Config.get().isUsePayNym() && soroban.getHdWallet() != null) {
|
||||||
soroban.getAuthToken(new HashMap<>()).subscribe(authToken -> {
|
soroban.getAuthToken(new HashMap<>()).subscribe(authToken -> {
|
||||||
String signature = soroban.getSignature(authToken);
|
String signature = soroban.getSignature(authToken);
|
||||||
soroban.followPaymentCode(paymentCodeInitiator, authToken, signature).subscribe(followMap -> {
|
soroban.followPaymentCode(paymentCodeInitiator, authToken, signature).subscribe(followMap -> {
|
||||||
@ -341,6 +341,8 @@ public class CounterpartyController extends SorobanController {
|
|||||||
}, error -> {
|
}, error -> {
|
||||||
log.warn("Could not follow payment code", error);
|
log.warn("Could not follow payment code", error);
|
||||||
});
|
});
|
||||||
|
}, error -> {
|
||||||
|
log.warn("Could not follow payment code", error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user