* [Bitcoin-development] "To:" addresses missing
@ 2011-07-26 14:41 John Smith
0 siblings, 0 replies; only message in thread
From: John Smith @ 2011-07-26 14:41 UTC (permalink / raw)
To: Bitcoin Dev
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
I first thought it was a problem in my UI, after syncing to the latest git
version. But the following screenshot says enough:
http://img24.imageshack.us/img24/7363/screencpf.png
The address are also missing in the detailed transaction view. It appears
that the problem is in script.cpp:
BOOST_FOREACH(PAIRTYPE(opcodetype, valtype)& item, vSolution)
{
uint160 hash160;
if (item.first == OP_PUBKEY)
addressRet.SetPubKey(item.second);
else if (item.first == OP_PUBKEYHASH)
addressRet.SetHash160((uint160)item.second);
if (keystore == NULL || keystore->HaveKey(addressRet))
return true;
}
It will only return "true" on keys that are in the keystore (your own
private keys...). After commenting out the "if (keystore == NULL ..." line,
the display is fixed.
But that simple solution might have impact somewhere else.
JS
[-- Attachment #2: Type: text/html, Size: 1115 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-26 14:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-26 14:41 [Bitcoin-development] "To:" addresses missing John Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox