Skip to content

Commit

Permalink
Merge pull request #12585 from turbolay/fixRoundDestroyer
Browse files Browse the repository at this point in the history
Add sanity check for round destroyer threshold
  • Loading branch information
molnard committed Mar 1, 2024
2 parents a769f28 + ef51e57 commit 3f656ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ private async Task CreateRoundsAsync(CancellationToken cancellationToken)
x.Phase == Phase.InputRegistration
&& x is not BlameRound
&& !x.IsInputRegistrationEnded(x.Parameters.MaxInputCountByRound)
&& x.InputCount >= roundDestroyerInputCount).ToArray())
&& x.InputCount >= Math.Min(0.9 * x.Parameters.MaxInputCountByRound, roundDestroyerInputCount)).ToArray())
{
feeRate = (await Rpc.EstimateConservativeSmartFeeAsync((int)Config.ConfirmationTarget, cancellationToken).ConfigureAwait(false)).FeeRate;

Expand Down

0 comments on commit 3f656ae

Please sign in to comment.