mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
Merge pull request #1659 from Kukks/psbt-fullprev
Add AlwaysIncludeNonWitnessUTXO to Wallet Send
This commit is contained in:
commit
0000257dcc
4 changed files with 15 additions and 2 deletions
|
@ -4,6 +4,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
<PackageReference Include="NBXplorer.Client" Version="3.0.15" />
|
||||
<PackageReference Include="NBXplorer.Client" Version="3.0.16" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -45,6 +45,8 @@ namespace BTCPayServer.Controllers
|
|||
if (sendModel.AllowFeeBump is WalletSendModel.ThreeStateBool.No)
|
||||
psbtRequest.RBF = false;
|
||||
}
|
||||
|
||||
psbtRequest.AlwaysIncludeNonWitnessUTXO = sendModel.AlwaysIncludeNonWitnessUTXO;
|
||||
|
||||
psbtRequest.FeePreference = new FeePreference();
|
||||
if (sendModel.FeeSatoshiPerByte is decimal v &&
|
||||
|
|
|
@ -51,6 +51,8 @@ namespace BTCPayServer.Models.WalletViewModels
|
|||
public string Fiat { get; set; }
|
||||
public string RateError { get; set; }
|
||||
public bool SupportRBF { get; set; }
|
||||
[Display(Name = "Always include non-witness UTXO if available")]
|
||||
public bool AlwaysIncludeNonWitnessUTXO { get; set; }
|
||||
[Display(Name = "Allow fee increase (RBF)")]
|
||||
public ThreeStateBool AllowFeeBump { get; set; }
|
||||
|
||||
|
|
|
@ -179,7 +179,16 @@
|
|||
<span class="fa fa-question-circle-o" title="More information..."></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="form-check">
|
||||
<input asp-for="AlwaysIncludeNonWitnessUTXO" class="form-check-input"/>
|
||||
<label asp-for="AlwaysIncludeNonWitnessUTXO" class="form-check-label"></label>
|
||||
<a href="https://medium.com/@jmacato/wasabi-wallets-advisory-for-trezor-users-7d942c727f92" target="_blank">
|
||||
<span class="fa fa-question-circle-o" title="More information..."></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@if (Model.SupportRBF)
|
||||
{
|
||||
<div class="form-group">
|
||||
|
|
Loading…
Add table
Reference in a new issue