Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.cpp
// 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. | ||||
// NOTE: This file is intended to be customised by the end user, and includes | // NOTE: This file is intended to be customised by the end user, and includes | ||||
// only local node policy logic | // only local node policy logic | ||||
#include <coins.h> | #include <coins.h> | ||||
#include <policy/policy.h> | #include <policy/policy.h> | ||||
#include <policy/settings.h> | |||||
#include <script/interpreter.h> | #include <script/interpreter.h> | ||||
#include <tinyformat.h> | |||||
#include <util/strencodings.h> | |||||
#include <util/system.h> | #include <util/system.h> | ||||
Amount GetDustThreshold(const CTxOut &txout, const CFeeRate &dustRelayFeeIn) { | Amount GetDustThreshold(const CTxOut &txout, const CFeeRate &dustRelayFeeIn) { | ||||
/** | /** | ||||
* "Dust" is defined in terms of dustRelayFee, which has units | * "Dust" is defined in terms of dustRelayFee, which has units | ||||
* satoshis-per-kilobyte. If you'd pay more than 1/3 in fees to spend | * satoshis-per-kilobyte. If you'd pay more than 1/3 in fees to spend | ||||
* something, then we consider it dust. A typical spendable txout is 34 | * something, then we consider it dust. A typical spendable txout is 34 | ||||
* bytes big, and will need a CTxIn of at least 148 bytes to spend: so dust | * bytes big, and will need a CTxIn of at least 148 bytes to spend: so dust | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |