|
scanner := bufio.NewScanner(conn) |
For example this code pointed to a yolov3x node never returns from BlockByNumber:
func main() {
ctx := context.Background()
url := "~/Library/Ethereum/yolo-v3/geth.ipc"
client, err := node.NewClient(ctx, url)
if err != nil {
panic(err)
}
start := uint64(0x3ede)
log.Printf("[WARN] start: %d", start)
block, err := client.BlockByNumber(ctx, start, true)
if err != nil {
panic(err)
} else {
log.Printf("[INFO] block: %#v", *block)
}
}
Haven't full debugged it but my guess is either the scanner fails and we don't handle the error correctly or the scanner hangs.
go-ethlibs/node/ipc.go
Line 18 in 61f7907
For example this code pointed to a yolov3x node never returns from
BlockByNumber:Haven't full debugged it but my guess is either the scanner fails and we don't handle the error correctly or the scanner hangs.