Select 1 hour as default fee rate

This commit is contained in:
nicolas.dorier
2023-12-19 12:23:20 +09:00
parent 2714907aef
commit 2fa7745886
2 changed files with 10 additions and 3 deletions

View File

@@ -512,9 +512,9 @@ namespace BTCPayServer.Controllers
await Task.WhenAll(recommendedFees);
model.RecommendedSatoshiPerByte =
recommendedFees.Select(tuple => tuple.Result).Where(option => option != null).ToList();
recommendedFees.Select(tuple => tuple.GetAwaiter().GetResult()).Where(option => option != null).ToList();
model.FeeSatoshiPerByte = model.RecommendedSatoshiPerByte.LastOrDefault()?.FeeRate;
model.FeeSatoshiPerByte = recommendedFees[1].GetAwaiter().GetResult()?.FeeRate;
model.SupportRBF = network.SupportRBF;
model.CryptoDivisibility = network.Divisibility;