John Smith [ARCHIVE] on Nostr: 📅 Original date posted:2011-07-26 🗒️ Summary of this message: A bug in ...
📅 Original date posted:2011-07-26
🗒️ Summary of this message: A bug in script.cpp is causing missing addresses in the detailed transaction view, which can be fixed by commenting out a line of code.
📝 Original message:I first thought it was a problem in my UI, after syncing to the latest git
version. But the following screenshot says enough:
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>
🗒️ Summary of this message: A bug in script.cpp is causing missing addresses in the detailed transaction view, which can be fixed by commenting out a line of code.
📝 Original message:I first thought it was a problem in my UI, after syncing to the latest git
version. But the following screenshot says enough:

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>