diff options
| author | jtimon <[email protected]> | 2014-10-23 02:05:11 +0200 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-10-27 13:54:37 +0100 |
| commit | eda37330911b005f4be0c2d934346b26247d50f5 (patch) | |
| tree | 47b9e17e2ec8bf2a351608a2cada601ec9d7e0bb /src/core.cpp | |
| parent | Merge pull request #5121 (diff) | |
| download | discoin-eda37330911b005f4be0c2d934346b26247d50f5.tar.xz discoin-eda37330911b005f4be0c2d934346b26247d50f5.zip | |
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 73e6de88e..ac180cc50 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) {} |