aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-01-25 22:20:02 -0500
committerAlex Morcos <morcos@chaincode.com>2017-01-25 22:24:40 -0500
commitae9719ab87a05ca4c3293b2f8675f17b16ed5872 (patch)
tree264da44e84591767467c1ed2e1d2c620523b27ad /src/wallet/wallet.h
parentfe8e8efcf91fa92db68aabeb0a1709b032e60dd6 (diff)
downloadbitcoin-ae9719ab87a05ca4c3293b2f8675f17b16ed5872.tar.xz
Refactor GetMinimumFee to give option of providing targetFee
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index ecc63a9a13..f95c0589d6 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -803,6 +803,11 @@ public:
*/
static CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool);
/**
+ * Estimate the minimum fee considering required fee and targetFee or if 0
+ * then fee estimation for nConfirmTarget
+ */
+ static CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool, CAmount targetFee);
+ /**
* Return the minimum required fee taking into account the
* floating relay fee and user set minimum transaction fee
*/