What is Nostr?
John Smith [ARCHIVE] /
npub1e4l…jafl
2023-06-07 02:08:05
in reply to nevent1q…akkj

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>;
Author Public Key
npub1e4lupyw4vuuhfsmt726ud69555re66pph90kwx0afpt346e9k7zsd4jafl