mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-23 15:14:49 +01:00
Fix Payjoin test randomly crashing
This commit is contained in:
@@ -285,6 +285,7 @@ namespace BTCPayServer.Payments.PayJoin
|
||||
|
||||
if (!await _payJoinRepository.TryLockInputs(ctx.OriginalTransaction.Inputs.Select(i => i.PrevOut).ToArray()))
|
||||
{
|
||||
ctx.DoNotBroadcast();
|
||||
return CreatePayjoinErrorAndLog(503, PayjoinReceiverWellknownErrors.Unavailable, "Some of those inputs have already been used to make another payjoin transaction");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user