From 290fdb5427703d5a9dc8bd951a1195c038c39c25 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 5 Sep 2013 12:58:19 -0400 Subject: [PATCH] Read btcd:blockconnected hash string from correct map. --- sockets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sockets.go b/sockets.go index a294eeb..6c1b019 100644 --- a/sockets.go +++ b/sockets.go @@ -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")