Read btcd:blockconnected hash string from correct map.

This commit is contained in:
Josh Rickmar 2013-09-05 12:58:19 -04:00
parent 2789502ec9
commit 290fdb5427

View file

@ -272,7 +272,7 @@ func ProcessBtcdNotificationReply(b []byte) {
switch idStr {
case "btcd:blockconnected":
result := m["result"].(map[string]interface{})
hashBE := m["hash"].(string)
hashBE := result["hash"].(string)
hash, err := btcwire.NewShaHashFromStr(hashBE)
if err != nil {
log.Error("btcd:blockconnected handler: Invalid hash string")