mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Return empty if no PaymentAccountPayload is available
This commit is contained in:
parent
dfb97ca05f
commit
75cc7633a3
@ -285,6 +285,10 @@ public class AccountAgeWitnessService {
|
||||
|
||||
Optional<AccountAgeWitness> findWitness(PaymentAccountPayload paymentAccountPayload,
|
||||
PubKeyRing pubKeyRing) {
|
||||
if (paymentAccountPayload == null) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
byte[] accountInputDataWithSalt = getAccountInputDataWithSalt(paymentAccountPayload);
|
||||
byte[] hash = Hash.getSha256Ripemd160hash(Utilities.concatenateByteArrays(accountInputDataWithSalt,
|
||||
pubKeyRing.getSignaturePubKeyBytes()));
|
||||
|
Loading…
Reference in New Issue
Block a user