Randomize RBF if the user does not care

This commit is contained in:
nicolas.dorier
2020-05-24 21:11:33 +09:00
parent 32f2acee53
commit 36630d9586
3 changed files with 28 additions and 13 deletions

View File

@@ -40,7 +40,10 @@ namespace BTCPayServer.Controllers
if (network.SupportRBF)
{
psbtRequest.RBF = !sendModel.DisableRBF;
if (sendModel.AllowFeeBump is WalletSendModel.ThreeStateBool.Yes)
psbtRequest.RBF = true;
if (sendModel.AllowFeeBump is WalletSendModel.ThreeStateBool.No)
psbtRequest.RBF = false;
}
psbtRequest.FeePreference = new FeePreference();