Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hashrate-Node
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanjinfei
hashrate-Node
Commits
5a980f7a
Commit
5a980f7a
authored
Aug 31, 2023
by
duanjinfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix event info
parent
9f48b8eb
Pipeline
#628
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
15 deletions
+3
-15
contractEventHandler.go
asyncLog/contractEventHandler.go
+0
-11
event.go
common/event.go
+3
-4
No files found.
asyncLog/contractEventHandler.go
View file @
5a980f7a
...
@@ -78,17 +78,6 @@ func VmCreateContractHandler(vLog types.Log) error {
...
@@ -78,17 +78,6 @@ func VmCreateContractHandler(vLog types.Log) error {
return
err
return
err
}
}
}
}
case
hashrateCommon
.
VmStatusEvent
:
{
vmStatusEvent
:=
&
models
.
VmStatusEvent
{}
err
=
stakeAbiInfo
.
UnpackIntoInterface
(
vmStatusEvent
,
"VmStatusEvent"
,
vLog
.
Data
)
if
err
!=
nil
{
cache
.
Redis
.
LpushByte
(
hashrateCommon
.
EventList
,
utils
.
Marshal
(
vmStatusEvent
))
}
if
vmStatusEvent
.
Progress
.
Int64
()
!=
bighundred
.
Int64
()
{
return
nil
}
}
}
}
}
}
return
nil
return
nil
...
...
common/event.go
View file @
5a980f7a
...
@@ -6,12 +6,11 @@ const (
...
@@ -6,12 +6,11 @@ const (
// VmCreateEvent 虚拟机创建事件
// VmCreateEvent 虚拟机创建事件
const
(
const
(
VmCreateEvent
=
"0x95a3474b7f17a50dbe31a066616a43275e294ecc845b2b15719fc1020a530828"
VmCreateEvent
=
"0x7d25d4d054c4e119d70f7f809edd27dfdff08e176a4a4a3f25e7e7ad63d3398e"
VmStatusEvent
=
"0x6d74ccc6dd7ac077e79f02d90ad1be6fc9b7a6fc9294398d29659ba748efda7a"
)
)
// VmCreateContract 虚拟机创建合约
// VmCreateContract 虚拟机创建合约
const
(
const
(
VmCreateContract
=
"0x
4a5001cC1CF65392Ea3386254c5eF0427E872a5B
"
VmCreateContract
=
"0x
FAbE2869D0E0a13b6776C31bD78505Ed9c2FAbec
"
VmContract
=
"0x1
7aa4736acd9d5043c43d80Fb432699990189aCc
"
VmContract
=
"0x1
5A5aac5D5bc2B7D0389a1054701a6583169FB00
"
)
)
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