mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Properly counting transactions that impact NetworkFee
This commit is contained in:
committed by
Andrew Camilleri
parent
edc9429e84
commit
48355129c5
@@ -557,6 +557,13 @@ namespace BTCPayServer.Controllers
|
||||
RedirectAutomatically = invoice.RedirectAutomatically,
|
||||
StoreName = store.StoreName,
|
||||
TxCount = accounting.TxRequired,
|
||||
TxCountForFee = storeBlob.NetworkFeeMode switch
|
||||
{
|
||||
NetworkFeeMode.Always => accounting.TxRequired,
|
||||
NetworkFeeMode.MultiplePaymentsOnly => accounting.TxRequired - 1,
|
||||
NetworkFeeMode.Never => 0,
|
||||
_ => throw new NotImplementedException()
|
||||
},
|
||||
BtcPaid = accounting.Paid.ShowMoney(divisibility),
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
Status = invoice.StatusString,
|
||||
|
||||
Reference in New Issue
Block a user