diff --git a/sandbox/config.go b/sandbox/config.go index 906a792e8fce4bd1ff3b5121864f0a375c01295b..55c9677dca88dd12212f26dd05168b7d6e9f380f 100644 --- a/sandbox/config.go +++ b/sandbox/config.go @@ -80,6 +80,21 @@ func initConfig() error { }, } + if len(os.Args) > 9 { + sendSize, err := strconv.Atoi(os.Args[8]) + sendByteSize := sendSize * 1024 * 1024 + if err == nil { + config.ContractEngineClient.MaxSendMsgSize = sendByteSize + config.RuntimeClient.MaxSendMsgSize = sendByteSize + } + recvSize, err := strconv.Atoi(os.Args[9]) + recvByteSize := recvSize * 1024 * 1024 + if err == nil { + config.ContractEngineClient.MaxRecvMsgSize = recvByteSize + config.RuntimeClient.MaxRecvMsgSize = recvByteSize + } + } + port, err := strconv.Atoi(os.Args[5]) if err != nil { return err