mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
les: fix commons protocol maker
This commit is contained in:
parent
202f08781b
commit
56220ca91e
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ type NodeInfo struct {
|
|||
|
||||
// makeProtocols creates protocol descriptors for the given LES versions.
|
||||
func (c *lesCommons) makeProtocols(versions []uint) []p2p.Protocol {
|
||||
protos := make([]p2p.Protocol, len(ClientProtocolVersions))
|
||||
protos := make([]p2p.Protocol, len(versions))
|
||||
for i, version := range versions {
|
||||
version := version
|
||||
protos[i] = p2p.Protocol{
|
||||
|
|
|
|||
Loading…
Reference in a new issue