Commit ce5750fb authored by Sergei Zubov's avatar Sergei Zubov

Fix estimate fee

parent 92619a18
...@@ -120,10 +120,10 @@ namespace Stratis.Bitcoin.Features.Wallet.Controllers ...@@ -120,10 +120,10 @@ namespace Stratis.Bitcoin.Features.Wallet.Controllers
Amount = recipientModel.Amount Amount = recipientModel.Amount
}); });
var context = new TransactionBuildContext(this._network) var context = new DeStreamTransactionBuildContext(this._network)
{ {
AccountReference = new WalletAccountReference(request.WalletName, request.AccountName), AccountReference = new WalletAccountReference(request.WalletName, request.AccountName),
FeeType = FeeParser.Parse(request.FeeType), FeeType = 0,
MinConfirmations = request.AllowUnconfirmed ? 0 : 1, MinConfirmations = request.AllowUnconfirmed ? 0 : 1,
Recipients = recipients Recipients = recipients
}; };
......
...@@ -235,8 +235,8 @@ namespace Stratis.Bitcoin.Features.Wallet ...@@ -235,8 +235,8 @@ namespace Stratis.Bitcoin.Features.Wallet
this.AddRecipients(context); this.AddRecipients(context);
this.AddOpReturnOutput(context); this.AddOpReturnOutput(context);
this.AddCoins(context); this.AddCoins(context);
this.AddSecrets(context);
this.FindChangeAddress(context); this.FindChangeAddress(context);
this.AddSecrets(context);
this.AddFee(context); this.AddFee(context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment