Fix: If DOGE fee becomes higher that 1 DOGE, the transaction would fail to broadcast

This commit is contained in:
nicolas.dorier
2018-07-01 13:46:28 +09:00
parent 63fe0f6612
commit 399ae2cd9e

View File

@@ -330,6 +330,8 @@ namespace BTCPayServer.Controllers
var estimatedFee = builder.EstimateFees(feeRateValue);
if (network.MinFee > estimatedFee)
builder.SendFees(network.MinFee);
else
builder.SendEstimatedFees(feeRateValue);
}
builder.Shuffle();
var unsigned = builder.BuildTransaction(false);