aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-07-26 19:15:45 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-07-26 19:41:47 +0200
commitb63241d4511896fcd65996ac7d9a5cb935118ca3 (patch)
tree83715fff9d1c9c428bc1d806316c1aad94578793 /src/wallet.cpp
parenta0eb1d151f60ac49ce30042c7ae4039cf538992d (diff)
downloadbitcoin-b63241d4511896fcd65996ac7d9a5cb935118ca3.tar.xz
Bugfix: don't overuse limited ExtractAddress
ExtractAddress was called with the keystore as argument in RPC and UI, limiting results to own keys. This caused empty "address" fields.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 8c4903b198..1f3f44bfa0 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -437,7 +437,7 @@ void CWalletTx::GetAmounts(int64& nGeneratedImmature, int64& nGeneratedMature, l
{
CBitcoinAddress address;
vector<unsigned char> vchPubKey;
- if (!ExtractAddress(txout.scriptPubKey, pwallet, address))
+ if (!ExtractAddress(txout.scriptPubKey, NULL, address))
{
printf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n",
this->GetHash().ToString().c_str());