mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Returns fallback feerate for coins not supporting fee rate query in NBXplorer
This commit is contained in:
parent
29f662f87c
commit
744734a6a1
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ namespace BTCPayServer.Services.Fees
|
|||
ExplorerClient _ExplorerClient;
|
||||
public async Task<FeeRate> GetFeeRateAsync()
|
||||
{
|
||||
if (!_ExplorerClient.Network.SupportEstimatesSmartFee)
|
||||
return _Factory.Fallback;
|
||||
try
|
||||
{
|
||||
return (await _ExplorerClient.GetFeeRateAsync(_Factory.BlockTarget).ConfigureAwait(false)).FeeRate;
|
||||
|
|
Loading…
Add table
Reference in a new issue