From 5e5889560b9c38e4e4cd94041eb2eafb2fba9561 Mon Sep 17 00:00:00 2001 From: guanghonglu Date: Mon, 26 Jun 2023 17:00:50 +0800 Subject: [PATCH] fix: get tx info error --bug=0 --- sandbox/config.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sandbox/config.go b/sandbox/config.go index 906a792..55c9677 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 -- GitLab