Support 16mb psbts. Potentially fixes #5768

This commit is contained in:
Kukks 2024-02-19 14:14:41 +01:00
parent bd4cf61c2b
commit 214d4b0c3f
No known key found for this signature in database
GPG key ID: 8E5530D9D1C93097

View file

@ -32,6 +32,7 @@ using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Extensions.DependencyInjection;
using NBitcoin;
using NBXplorer;
@ -47,6 +48,8 @@ namespace BTCPayServer.Controllers
[Route("wallets")]
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
[AutoValidateAntiforgeryToken]
//16mb psbts
[RequestFormLimits(ValueLengthLimit = FormReader.DefaultValueLengthLimit * 4)]
public partial class UIWalletsController : Controller
{
private StoreRepository Repository { get; }