I was writing some tests with simd/v2, and the start command was failing because the gRPC server component could not bind to port 9090. I did not need the gRPC server for my test, so I set the config to Enable=false, but it still tried to bind to 9090.
Is there an existing issue for this?
What happened?
I was writing some tests with simd/v2, and the
start
command was failing because the gRPC server component could not bind to port 9090. I did not need the gRPC server for my test, so I set the config toEnable=false
, but it still tried to bind to 9090.The
(*GRPCServer).Start
method is short enough that it is easy to see it does not respect theEnable
setting: https://github.com/cosmos/cosmos-sdk/blob/d426a5db677506a981cb094249bb6eaaf6324d39/server/v2/api/grpc/server.go#L73-L94For my purposes, setting
Address=127.0.0.1:0
to bind to an anonymous port is a sufficient workaround, althoughEnabled=false
would be preferable.Cosmos SDK Version
main
How to reproduce?
No response