[Bitcoin-development] "To:" addresses missing
John Smith
witchspace81 at gmail.com
Tue Jul 26 14:41:07 UTC 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20110726/84ca2e10/attachment.html>
More information about the bitcoin-dev
mailing list