Skip to content

Commit e010af7

Browse files
committed
Remove broken PrintWallet functionality
1 parent fe52346 commit e010af7

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

src/main.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,6 @@ void static UpdatedTransaction(const uint256& hashTx)
129129
pwallet->UpdatedTransaction(hashTx);
130130
}
131131

132-
// dump all wallets
133-
void static PrintWallets(const CBlock& block)
134-
{
135-
LOCK(cs_setpwalletRegistered);
136-
BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered)
137-
pwallet->PrintWallet(block);
138-
}
139-
140132
// notify wallets about an incoming inventory (for request counts)
141133
void static Inventory(const uint256& hash)
142134
{
@@ -3031,8 +3023,6 @@ void PrintBlockTree()
30313023
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()).c_str(),
30323024
block.vtx.size());
30333025

3034-
PrintWallets(block);
3035-
30363026
// put the main time-chain first
30373027
vector<CBlockIndex*>& vNext = mapNext[pindex];
30383028
for (unsigned int i = 0; i < vNext.size(); i++)

src/wallet.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,19 +1485,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
14851485
return CWalletDB(strWalletFile).EraseName(CBitcoinAddress(address).ToString());
14861486
}
14871487

1488-
void CWallet::PrintWallet(const CBlock& block)
1489-
{
1490-
{
1491-
LOCK(cs_wallet);
1492-
if (mapWallet.count(block.vtx[0].GetHash()))
1493-
{
1494-
CWalletTx& wtx = mapWallet[block.vtx[0].GetHash()];
1495-
LogPrintf(" mine: %d %d %"PRI64d"", wtx.GetDepthInMainChain(), wtx.GetBlocksToMaturity(), wtx.GetCredit());
1496-
}
1497-
}
1498-
LogPrintf("\n");
1499-
}
1500-
15011488
bool CWallet::SetDefaultKey(const CPubKey &vchPubKey)
15021489
{
15031490
if (fFileBacked)

src/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ class CWallet : public CCryptoKeyStore
302302

303303
void UpdatedTransaction(const uint256 &hashTx);
304304

305-
void PrintWallet(const CBlock& block);
306-
307305
void Inventory(const uint256 &hash)
308306
{
309307
{

0 commit comments

Comments
 (0)