From 8b5b90d247bff5bb45d0013e75e4658a7fece8ef Mon Sep 17 00:00:00 2001 From: jackstar12 <62219658+jackstar12@users.noreply.github.com> Date: Fri, 18 Oct 2024 07:03:37 +0200 Subject: [PATCH] refactor: make BeforeFetchingRates function public (#6310) This function is useful when a payment method wants to update its payment prompt after receiving a partial payment, like ln does --- BTCPayServer/Payments/IPaymentMethodHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Payments/IPaymentMethodHandler.cs b/BTCPayServer/Payments/IPaymentMethodHandler.cs index cccc48545..83a6c4309 100644 --- a/BTCPayServer/Payments/IPaymentMethodHandler.cs +++ b/BTCPayServer/Payments/IPaymentMethodHandler.cs @@ -295,7 +295,7 @@ namespace BTCPayServer.Payments /// public List TrackedDestinations { get; } = new(); - internal async Task BeforeFetchingRates() + public async Task BeforeFetchingRates() { await Handler.BeforeFetchingRates(this); // We need to fetch the rates necessary for the evaluation of the payment method criteria