Changeset View
Changeset View
Standalone View
Standalone View
src/policy/fees.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_POLICYESTIMATOR_H | #ifndef BITCOIN_POLICY_FEES_H | ||||
#define BITCOIN_POLICYESTIMATOR_H | #define BITCOIN_POLICY_FEES_H | ||||
#include <amount.h> | #include <amount.h> | ||||
#include <random.h> | #include <random.h> | ||||
#include <uint256.h> | #include <uint256.h> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
Show All 17 Lines | public: | ||||
/** Quantize a minimum fee for privacy purpose before broadcast **/ | /** Quantize a minimum fee for privacy purpose before broadcast **/ | ||||
Amount round(const Amount currentMinFee); | Amount round(const Amount currentMinFee); | ||||
private: | private: | ||||
std::set<Amount> feeset; | std::set<Amount> feeset; | ||||
FastRandomContext insecure_rand; | FastRandomContext insecure_rand; | ||||
}; | }; | ||||
#endif /*BITCOIN_POLICYESTIMATOR_H */ | |||||
#endif // BITCOIN_POLICY_FEES_H |