diff options
author | jtimon <jtimon@blockstream.io> | 2014-10-23 02:05:11 +0200 |
---|---|---|
committer | jtimon <jtimon@blockstream.io> | 2014-10-27 13:54:37 +0100 |
commit | eda37330911b005f4be0c2d934346b26247d50f5 (patch) | |
tree | 47b9e17e2ec8bf2a351608a2cada601ec9d7e0bb /src/core.cpp | |
parent | b6c99efe9ccb44a4324bacb879ab1f43960bf69b (diff) |
MOVEONLY: Move CFeeRate and Amount constants to amount.o
Diffstat (limited to 'src/core.cpp')
-rw-r--r-- | src/core.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core.cpp b/src/core.cpp index 73e6de88e1..ac180cc509 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -59,29 +59,6 @@ std::string CTxOut::ToString() const return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, scriptPubKey.ToString().substr(0,30)); } -CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nSize) -{ - if (nSize > 0) - nSatoshisPerK = nFeePaid*1000/nSize; - else - nSatoshisPerK = 0; -} - -CAmount CFeeRate::GetFee(size_t nSize) const -{ - CAmount nFee = nSatoshisPerK*nSize / 1000; - - if (nFee == 0 && nSatoshisPerK > 0) - nFee = nSatoshisPerK; - - return nFee; -} - -std::string CFeeRate::ToString() const -{ - return strprintf("%d.%08d BTC/kB", nSatoshisPerK / COIN, nSatoshisPerK % COIN); -} - CMutableTransaction::CMutableTransaction() : nVersion(CTransaction::CURRENT_VERSION), nLockTime(0) {} CMutableTransaction::CMutableTransaction(const CTransaction& tx) : nVersion(tx.nVersion), vin(tx.vin), vout(tx.vout), nLockTime(tx.nLockTime) {} |