Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
白 鹿
contract-sdk-go
Commits
e67a5359
Commit
e67a5359
authored
Oct 28, 2022
by
gh lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update time judgement
--bug=0
parent
ebb43f72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
sandbox/config.go
sandbox/config.go
+6
-0
sandbox/time_statics.go
sandbox/time_statics.go
+1
-1
No files found.
sandbox/config.go
View file @
e67a5359
...
...
@@ -35,6 +35,7 @@ type Conf struct {
LogLevel
string
ContractEngineClient
*
ContractEngineClientConf
RuntimeClient
*
RuntimeClientConf
DisableSlowLog
bool
}
type
RuntimeClientConf
struct
{
...
...
@@ -93,6 +94,11 @@ func initConfig() error {
config
.
RuntimeClient
.
RuntimeRPCProtocolType
=
TCP
config
.
RuntimeClient
.
RuntimeHost
=
os
.
Args
[
6
]
config
.
RuntimeClient
.
RuntimePort
=
strconv
.
Itoa
(
port
)
if
len
(
os
.
Args
)
>
7
{
if
config
.
DisableSlowLog
,
err
=
strconv
.
ParseBool
(
os
.
Args
[
7
]);
err
!=
nil
{
return
err
}
}
return
nil
}
...
...
sandbox/time_statics.go
View file @
e67a5359
...
...
@@ -153,7 +153,7 @@ func (t *TxDuration) addSysCallDuration(duration *SysCallDuration) {
// EnterNextStep enter next duration tx step
func
EnterNextStep
(
msg
*
protogo
.
DockerVMMessage
,
stepType
protogo
.
StepType
,
log
string
)
{
if
len
(
msg
.
StepDurations
)
==
0
{
if
config
.
DisableSlowLog
{
return
}
if
stepType
!=
protogo
.
StepType_RUNTIME_PREPARE_TX_REQUEST
{
...
...
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