You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to parse the blockchain using gocoin, but I got a panic: runtime error: invalid memory address or nil pointer dereference when I try to decode address for weird TxOut.
Hi,
I'm trying to parse the blockchain using gocoin, but I got a
panic: runtime error: invalid memory address or nil pointer dereference
when I try to decode address for weird TxOut.Here is my code (https://gist.github.com/tsileo/8008319), and here is the exception I'm getting:
It happens on weird TxOut, when it can't decode/compute address, I found some explanations here and here.
I see it at block:
Even blockchain.info can't handle these TxOuts, I think it's missing some error checking, maybe it should return
nil
?I just started learning Go, so let me know if I missed something,
Thanks!
The text was updated successfully, but these errors were encountered: