Right now we do two different network calls when we need to request certificates. First we do a chain info query to get the certificate hashes, then we download the hashes using the endpoint.
Ideally, to potentially save one network call, we could on the chain info query include the actual full certificate until the message size limit (GRPC_MAX_MESSAGE_SIZE) gets passed, then from then on include just the hashes.
We might not be able to compare directly with GRPC_MAX_MESSAGE_SIZE, need to check the documentation to see if that refers to just the actual payload size, or if it's the entire request. If it's the entire request, we might have to compare with a lower adjusted number than GRPC_MAX_MESSAGE_SIZE.
Right now we do two different network calls when we need to request certificates. First we do a chain info query to get the certificate hashes, then we download the hashes using the endpoint. Ideally, to potentially save one network call, we could on the chain info query include the actual full certificate until the message size limit (
GRPC_MAX_MESSAGE_SIZE
) gets passed, then from then on include just the hashes.We might not be able to compare directly with
GRPC_MAX_MESSAGE_SIZE
, need to check the documentation to see if that refers to just the actual payload size, or if it's the entire request. If it's the entire request, we might have to compare with a lower adjusted number thanGRPC_MAX_MESSAGE_SIZE
.