Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
token-bridge
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
movabridge
token-bridge
Commits
84ef7311
Commit
84ef7311
authored
Sep 18, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
profile code
parent
7006abff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
eth.go
dao/eth.go
+3
-3
No files found.
dao/eth.go
View file @
84ef7311
...
...
@@ -48,7 +48,7 @@ func (d *Dao) GetLatestBockHash(chain *config.ChainConfig) (hash string, err err
if
!
ok
{
return
""
,
errors
.
New
(
"chain client not support"
)
}
block
,
err
:=
chainInfo
.
cli
.
Block
ByNumber
(
ctx
,
nil
)
block
,
err
:=
chainInfo
.
cli
.
Header
ByNumber
(
ctx
,
nil
)
if
err
!=
nil
{
return
}
...
...
@@ -64,9 +64,9 @@ func (d *Dao) GetBlockTime(chain *config.ChainConfig, height int64) (timestamp i
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
10
*
time
.
Second
)
defer
cancel
()
block
,
err
:=
chainInfo
.
cli
.
Block
ByNumber
(
ctx
,
big
.
NewInt
(
int64
(
height
)))
block
,
err
:=
chainInfo
.
cli
.
Header
ByNumber
(
ctx
,
big
.
NewInt
(
int64
(
height
)))
if
err
==
nil
{
return
int64
(
block
.
Time
()
),
nil
return
int64
(
block
.
Time
),
nil
}
}
return
...
...
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