Fix incorrect protocol list comparison in NetworkManager.RegisterReactor
@@ -157,9 +157,9 @@ func (m *manager) RegisterReactor(
if len(spis) != len(piList) {
return nil, errors.WithStack(ErrIllegalArgument)
}
- for _, subProtocol := range piList {
- has := false
for _, spi := range spis {
+ has := false
+ for _, subProtocol := range piList {
if subProtocol.Uint16() == spi.Uint16() {
has = true
break
