BlockNumber as int fix

This commit is contained in:
Taylor Gerring 2015-03-18 15:48:34 -04:00
parent 7cbcd81ddc
commit e02eedb43e

View File

@ -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
} }