Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
白 鹿
contract-sdk-go
Commits
5e588956
Commit
5e588956
authored
Jun 26, 2023
by
gh lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: get tx info error
--bug=0
parent
24ce2b84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
sandbox/config.go
sandbox/config.go
+15
-0
No files found.
sandbox/config.go
View file @
5e588956
...
@@ -80,6 +80,21 @@ func initConfig() error {
...
@@ -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
])
port
,
err
:=
strconv
.
Atoi
(
os
.
Args
[
5
])
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment