mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 02:07:07 +00:00
Reuse getConfidentialRecipientCount (#6281)
This commit is contained in:
@@ -1277,7 +1277,8 @@ MPTTester::send(MPTConfidentialSend const& arg)
|
||||
arg.dest->id(),
|
||||
version);
|
||||
|
||||
auto const nRecipients = auditorAmt ? 4 : 3;
|
||||
auto const nRecipients =
|
||||
getConfidentialRecipientCount(auditorAmt.has_value());
|
||||
std::vector<ConfidentialRecipient> recipients;
|
||||
|
||||
auto const senderPubKey = getPubKey(*arg.account);
|
||||
|
||||
@@ -162,7 +162,8 @@ ConfidentialSend::preclaim(PreclaimContext const& ctx)
|
||||
destination,
|
||||
(*sleSenderMPToken)[~sfConfidentialBalanceVersion].value_or(0));
|
||||
|
||||
auto const expectedRecipients = requiresAuditor ? 4 : 3;
|
||||
auto const expectedRecipients =
|
||||
getConfidentialRecipientCount(requiresAuditor);
|
||||
|
||||
// Prepare encrypted amount info for proof verification
|
||||
std::vector<ConfidentialRecipient> recipients;
|
||||
|
||||
Reference in New Issue
Block a user