fix(server/v2/cometbft): align default response for filter cmd when handleQueryP2P (#23365)

This commit is contained in:
mmsqe 2025-01-14 18:00:33 +08:00 committed by GitHub
parent 5581225a9b
commit 76e75bb4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,7 @@ func (c *consensus[T]) handleQueryP2P(path []string) (*abci.QueryResponse, error
return c.idPeerFilter(arg)
}
}
return &abci.QueryResponse{}, nil
}
return nil, errorsmod.Wrap(cometerrors.ErrUnknownRequest, "expected second parameter to be 'filter'")