Browse Source

Merge #9085: Remove unused CTxOut::GetHash()

190fd32 Remove unused CTxOut::GetHash() (Matt Corallo)
0.14
Pieter Wuille 8 years ago
parent
commit
05009935f9
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 5
      src/primitives/transaction.cpp
  2. 2
      src/primitives/transaction.h

5
src/primitives/transaction.cpp

@ -49,11 +49,6 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn) @@ -49,11 +49,6 @@ CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn)
scriptPubKey = scriptPubKeyIn;
}
uint256 CTxOut::GetHash() const
{
return SerializeHash(*this);
}
std::string CTxOut::ToString() const
{
return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30));

2
src/primitives/transaction.h

@ -160,8 +160,6 @@ public: @@ -160,8 +160,6 @@ public:
return (nValue == -1);
}
uint256 GetHash() const;
CAmount GetDustThreshold(const CFeeRate &minRelayTxFee) const
{
// "Dust" is defined in terms of CTransaction::minRelayTxFee,

Loading…
Cancel
Save