Limit MaxRegistrableVsize inside a round
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
@@ -21,8 +21,8 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
CoinjoinState = new ConstructionState(txParams);
InitialInputVsizeAllocation = CoinjoinState.Parameters.MaxTransactionSize - MultipartyTransactionParameters.SharedOverhead;
- MaxRegistrableVsize = InitialInputVsizeAllocation;
- MaxVsizeAllocationPerAlice = MaxRegistrableVsize / RoundParameters.MaxInputCountByRound;
+ MaxRegistrableVsize = Math.Min(InitialInputVsizeAllocation / RoundParameters.MaxInputCountByRound, (int)ProtocolConstants.MaxVsizeCredentialValue);
+ MaxVsizeAllocationPerAlice = MaxRegistrableVsize;
AmountCredentialIssuer = new(new(RoundParameters.Random), RoundParameters.Random, MaxRegistrableAmount);
VsizeCredentialIssuer = new(new(RoundParameters.Random), RoundParameters.Random, (ulong)MaxRegistrableVsize);

Limit MaxRegistrableVsize inside a round