Commit e02eedb4 authored by Taylor Gerring's avatar Taylor Gerring

BlockNumber as int fix

parent 7cbcd81d
...@@ -10,9 +10,9 @@ import ( ...@@ -10,9 +10,9 @@ import (
func blockAge(raw interface{}, number *int64) (err error) { func blockAge(raw interface{}, number *int64) (err error) {
// Parse as integer // Parse as integer
num, ok := raw.(int64) num, ok := raw.(float64)
if ok { if ok {
*number = num *number = int64(num)
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment