Read btcd:blockconnected hash string from correct map.
This commit is contained in:
parent
2789502ec9
commit
290fdb5427
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue