From 214d4b0c3f329be89c21d838da77662e91e02bb7 Mon Sep 17 00:00:00 2001 From: Kukks Date: Mon, 19 Feb 2024 14:14:41 +0100 Subject: [PATCH] Support 16mb psbts. Potentially fixes #5768 --- BTCPayServer/Controllers/UIWalletsController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BTCPayServer/Controllers/UIWalletsController.cs b/BTCPayServer/Controllers/UIWalletsController.cs index e81ed7f7f..5df8150a8 100644 --- a/BTCPayServer/Controllers/UIWalletsController.cs +++ b/BTCPayServer/Controllers/UIWalletsController.cs @@ -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; }