mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-31 01:11:31 +00:00
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 {
|
switch idStr {
|
||||||
case "btcd:blockconnected":
|
case "btcd:blockconnected":
|
||||||
result := m["result"].(map[string]interface{})
|
result := m["result"].(map[string]interface{})
|
||||||
hashBE := m["hash"].(string)
|
hashBE := result["hash"].(string)
|
||||||
hash, err := btcwire.NewShaHashFromStr(hashBE)
|
hash, err := btcwire.NewShaHashFromStr(hashBE)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("btcd:blockconnected handler: Invalid hash string")
|
log.Error("btcd:blockconnected handler: Invalid hash string")
|
||||||
|
|
Loading…
Add table
Reference in a new issue