Remove broken PrintWallet functionality
This commit is contained in:
parent
fe52346450
commit
e010af7089
3 changed files with 0 additions and 25 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -129,14 +129,6 @@ void static UpdatedTransaction(const uint256& hashTx)
|
||||||
pwallet->UpdatedTransaction(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)
|
// notify wallets about an incoming inventory (for request counts)
|
||||||
void static Inventory(const uint256& hash)
|
void static Inventory(const uint256& hash)
|
||||||
{
|
{
|
||||||
|
@ -3031,8 +3023,6 @@ void PrintBlockTree()
|
||||||
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()).c_str(),
|
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()).c_str(),
|
||||||
block.vtx.size());
|
block.vtx.size());
|
||||||
|
|
||||||
PrintWallets(block);
|
|
||||||
|
|
||||||
// put the main time-chain first
|
// put the main time-chain first
|
||||||
vector<CBlockIndex*>& vNext = mapNext[pindex];
|
vector<CBlockIndex*>& vNext = mapNext[pindex];
|
||||||
for (unsigned int i = 0; i < vNext.size(); i++)
|
for (unsigned int i = 0; i < vNext.size(); i++)
|
||||||
|
|
|
@ -1485,19 +1485,6 @@ bool CWallet::DelAddressBook(const CTxDestination& address)
|
||||||
return CWalletDB(strWalletFile).EraseName(CBitcoinAddress(address).ToString());
|
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)
|
bool CWallet::SetDefaultKey(const CPubKey &vchPubKey)
|
||||||
{
|
{
|
||||||
if (fFileBacked)
|
if (fFileBacked)
|
||||||
|
|
|
@ -302,8 +302,6 @@ public:
|
||||||
|
|
||||||
void UpdatedTransaction(const uint256 &hashTx);
|
void UpdatedTransaction(const uint256 &hashTx);
|
||||||
|
|
||||||
void PrintWallet(const CBlock& block);
|
|
||||||
|
|
||||||
void Inventory(const uint256 &hash)
|
void Inventory(const uint256 &hash)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue