Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Allred
crown-core
Commits
e010af70
Commit
e010af70
authored
11 years ago
by
Pieter Wuille
Browse files
Options
Download
Email Patches
Plain Diff
Remove broken PrintWallet functionality
parent
fe523464
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main.cpp
+0
-10
src/main.cpp
src/wallet.cpp
+0
-13
src/wallet.cpp
src/wallet.h
+0
-2
src/wallet.h
with
0 additions
and
25 deletions
+0
-25
src/main.cpp
View file @
e010af70
...
...
@@ -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
++
)
...
...
This diff is collapsed.
Click to expand it.
src/wallet.cpp
View file @
e010af70
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/wallet.h
View file @
e010af70
...
...
@@ -302,8 +302,6 @@ public:
void
UpdatedTransaction
(
const
uint256
&
hashTx
);
void
PrintWallet
(
const
CBlock
&
block
);
void
Inventory
(
const
uint256
&
hash
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help