aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-10-19 17:30:11 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-10-26 14:49:47 +0200
commite010af7089b18af838b74a4dc7908885c1600d13 (patch)
tree61a8eb728c2707d7e38015f7af2a5998d14e4b7b /src
parentfe5234645036178a540fdd4166b26493b0b40529 (diff)
downloadbitcoin-e010af7089b18af838b74a4dc7908885c1600d13.tar.xz
Remove broken PrintWallet functionality
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp10
-rw-r--r--src/wallet.cpp13
-rw-r--r--src/wallet.h2
3 files changed, 0 insertions, 25 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f9c49a6f34..6ec261b5f8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -129,14 +129,6 @@ void static UpdatedTransaction(const uint256& hashTx)
pwallet->UpdatedTransaction(hashTx);
}
-// dump all wallets
-void static PrintWallets(const CBlock& block)
-{
- LOCK(cs_setpwalletRegistered);
- BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered)
- pwallet->PrintWallet(block);
-}
-
// notify wallets about an incoming inventory (for request counts)
void static Inventory(const uint256& hash)
{
@@ -3031,8 +3023,6 @@ void PrintBlockTree()
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()).c_str(),
block.vtx.size());
- PrintWallets(block);
-
// put the main time-chain first
vector<CBlockIndex*>& vNext = mapNext[pindex];
for (unsigned int i = 0; i < vNext.size(); i++)
diff --git a/src/wallet.cpp b/src/wallet.cpp
index e37a835782..24813c54ec 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1485,19 +1485,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
return CWalletDB(strWalletFile).EraseName(CBitcoinAddress(address).ToString());
}
-void CWallet::PrintWallet(const CBlock& block)
-{
- {
- LOCK(cs_wallet);
- if (mapWallet.count(block.vtx[0].GetHash()))
- {
- CWalletTx& wtx = mapWallet[block.vtx[0].GetHash()];
- LogPrintf(" mine: %d %d %"PRI64d"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit());
- }
- }
- LogPrintf("\n");
-}
-
bool CWallet::SetDefaultKey(const CPubKey &vchPubKey)
{
if (fFileBacked)
diff --git a/src/wallet.h b/src/wallet.h
index 179709a15a..7598efc1ab 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -302,8 +302,6 @@ public:
void UpdatedTransaction(const uint256 &hashTx);
- void PrintWallet(const CBlock& block);
-
void Inventory(const uint256 &hash)
{
{