Hyperledger Fabric 1.0:PutState 函数的值长度是否有任何硬性限制
Hyperledger Fabric 1.0: Is there any hard limit for the length of value for PutState function
例如,在 Redis 中,字符串值的长度最大为 512 兆字节。 hyperledger fabric 有类似的东西吗?我的想法是它应该受到交易大小或块大小的限制,但我在文档中的任何地方都找不到确切的数字。
PutState
函数的值受当前配置为 100Mb 的总体 gRPC 最大消息大小的限制,您可以找到它的配置方式 server.go
// set max send and recv msg sizes
serverOpts = append(serverOpts, grpc.MaxSendMsgSize(MaxSendMsgSize()))
serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(MaxRecvMsgSize()))
默认值可以表示为config.go。
// Max send and receive bytes for grpc clients and servers
maxRecvMsgSize = 100 * 1024 * 1024
maxSendMsgSize = 100 * 1024 * 1024
例如,在 Redis 中,字符串值的长度最大为 512 兆字节。 hyperledger fabric 有类似的东西吗?我的想法是它应该受到交易大小或块大小的限制,但我在文档中的任何地方都找不到确切的数字。
PutState
函数的值受当前配置为 100Mb 的总体 gRPC 最大消息大小的限制,您可以找到它的配置方式 server.go
// set max send and recv msg sizes
serverOpts = append(serverOpts, grpc.MaxSendMsgSize(MaxSendMsgSize()))
serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(MaxRecvMsgSize()))
默认值可以表示为config.go。
// Max send and receive bytes for grpc clients and servers
maxRecvMsgSize = 100 * 1024 * 1024
maxSendMsgSize = 100 * 1024 * 1024