Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
25670725
Commit
25670725
authored
Jun 14, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added feerate for the tumbler client transactions
parent
398ec79f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
ExternalServices.cs
Breeze/src/Breeze.TumbleBit.Client/ExternalServices.cs
+15
-1
No files found.
Breeze/src/Breeze.TumbleBit.Client/ExternalServices.cs
View file @
25670725
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Text
;
using
System.Text
;
using
NBitcoin
;
using
NBitcoin
;
using
NTumbleBit
;
using
NTumbleBit
;
using
Stratis.Bitcoin.MemoryPool
;
namespace
Breeze.TumbleBit.Client
namespace
Breeze.TumbleBit.Client
{
{
...
@@ -33,7 +34,20 @@ namespace Breeze.TumbleBit.Client
...
@@ -33,7 +34,20 @@ namespace Breeze.TumbleBit.Client
public
FeeRate
GetFeeRate
()
public
FeeRate
GetFeeRate
()
{
{
return
null
;
decimal
relayFee
=
MempoolValidator
.
MinRelayTxFee
.
FeePerK
.
ToUnit
(
MoneyUnit
.
BTC
);
var
minimumRate
=
new
FeeRate
(
Money
.
Coins
(
relayFee
*
2
),
1000
);
//0.00002000 BTC/kB
var
fallbackFeeRate
=
new
FeeRate
(
Money
.
Satoshis
(
50
),
1
);
//0.00050000 BTC/kB
// TODO add real fee estimation
//var rate = _RPCClient.TryEstimateFeeRate(1) ??
// _RPCClient.TryEstimateFeeRate(2) ??
// _RPCClient.TryEstimateFeeRate(3) ??
// FallBackFeeRate;
//if (rate < MinimumFeeRate)
// rate = MinimumFeeRa
return
fallbackFeeRate
;
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment