Skip to content

Commit 87b0c58

Browse files
committed
use group limit in bench
1 parent cea12db commit 87b0c58

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bench/wallet_silentpayments_scan.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ namespace wallet {
2525

2626
static int SATS_PER_OUTPUT = 1;
2727
static int FEE_SATS = 1000;
28-
static size_t SP_RECIPIENT_GROUP_LIMIT = 1000;
2928

3029
static void WalletSPScan(
3130
benchmark::Bench& bench,
@@ -88,8 +87,8 @@ static void WalletSPScan(
8887
assert(spdest.has_value());
8988

9089
const size_t num_sp_outputs = n_payments ?
91-
std::min(SP_RECIPIENT_GROUP_LIMIT, *n_payments) :
92-
std::min(SP_RECIPIENT_GROUP_LIMIT, outputs_per_tx);
90+
std::min(bip352::SP_RECIPIENT_GROUP_LIMIT, *n_payments) :
91+
std::min(bip352::SP_RECIPIENT_GROUP_LIMIT, outputs_per_tx);
9392
assert(num_sp_outputs <= outputs_per_tx); // n_payments must not be more that outputs_per_tx
9493
std::map<size_t, V0SilentPaymentDestination> dests;
9594
for (size_t i = 0; i < num_sp_outputs; ++i) {

0 commit comments

Comments
 (0)