ssvlabs/ssv

network/records: panic due to insufficient subnets length

Closed this issue · 0 comments

INFO    P2PNetwork      Verified handshake nodeinfo     {"selfPeer": "16Uiu2HAmMmWFy5nnGguFdoaRZVBMDgvdUzh4MXDtYEjGCiQ8rH7w", "peer_id": "12D3KooWJqhpvtikxfRQSCSJiBXjKfZeUkpXe2x8yinF26Ytc88G", "peer_id": "12D3KooWJqhpvtikxfRQSCSJiBXjKfZeUkpXe2x8yinF26Ytc88G", "metadata": {"NodeVersion":"RSSV v0.1.0","ExecutionNode":"","ConsensusNode":"","Subnets":"1000000000004000010000"}, "networkID": "0x00000502"}
panic: runtime error: index out of range [104] with length 88

goroutine 37011028 [running]:
github.com/ssvlabs/ssv/network/records.SharedSubnets(...)
        /go/src/github.com/ssvlabs/ssv/network/records/subnets.go:112
github.com/ssvlabs/ssv/network/peers/connections.(*connHandler).sharesEnoughSubnets(0xc00d0d1dc0, 0xc00f255580, {0x2283860?, 0xc022483e60?})
        /go/src/github.com/ssvlabs/ssv/network/peers/connections/conn_handler.go:226 +0x534
github.com/ssvlabs/ssv/network/peers/connections.(*connHandler).Handle.func4(0xc00f255580, {0x2289d88, 0xc00d030c00}, {0x2283860, 0xc022483e60})
        /go/src/github.com/ssvlabs/ssv/network/peers/connections/conn_handler.go:138 +0x78e
github.com/ssvlabs/ssv/network/peers/connections.(*connHandler).Handle.func6.1()
        /go/src/github.com/ssvlabs/ssv/network/peers/connections/conn_handler.go:171 +0xc3
created by github.com/ssvlabs/ssv/network/peers/connections.(*connHandler).Handle.func6 in goroutine 37010913
        /go/src/github.com/ssvlabs/ssv/network/peers/connections/conn_handler.go:169 +0x150
make: *** [Makefile:119: start-node] Error 2