PIVX Core  5.6.99
P2P Digital Currency
fees.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2017 The Bitcoin Core developers
3 // Copyright (c) 2021 The PIVX Core developers
4 // Distributed under the MIT software license, see the accompanying
5 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 
7 #ifndef PIVX_WALLET_FEES_H
8 #define PIVX_WALLET_FEES_H
9 
10 #include "amount.h"
11 
12 class CTxMemPool;
13 
18 CAmount GetRequiredFee(unsigned int nTxBytes);
19 
24 CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool& pool);
25 
26 
27 #endif // PIVX_WALLET_FEES_H
int64_t CAmount
Amount in PIV (Can be negative)
Definition: amount.h:13
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:384
CAmount GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarget, const CTxMemPool &pool)
Estimate the minimum fee considering user set parameters and the required fee.
Definition: fees.cpp:20
CAmount GetRequiredFee(unsigned int nTxBytes)
Return the minimum required fee taking into account the floating relay fee and user set minimum trans...
Definition: fees.cpp:15