diff options
| author | Pieter Wuille <[email protected]> | 2011-07-26 19:15:45 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2011-07-26 19:41:47 +0200 |
| commit | b63241d4511896fcd65996ac7d9a5cb935118ca3 (patch) | |
| tree | 83715fff9d1c9c428bc1d806316c1aad94578793 /src/wallet.cpp | |
| parent | Merge pull request #434 from laanwj/addkey_retval (diff) | |
| download | discoin-b63241d4511896fcd65996ac7d9a5cb935118ca3.tar.xz discoin-b63241d4511896fcd65996ac7d9a5cb935118ca3.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 8c4903b19..1f3f44bfa 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()); |