gcash / bchwallet

A secure bitcoin cash wallet daemon written in Go (golang)
ISC License
43 stars 29 forks source link

[Bug] Fix panic in SignRawTransaction when resp.Receive() returns a nil result #44

Closed zquestz closed 5 years ago

zquestz commented 5 years ago

Addresses issue https://github.com/gcash/bchwallet/issues/43

There is a special case where resp.Receive() will return nil, nil. This merely handles that case gracefully by making sure the result is present before decoding result.ScriptPubKey.Hex.