Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
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
exchain
nebula
Commits
3c978c01
Unverified
Commit
3c978c01
authored
Oct 12, 2023
by
Ethen Pociask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[indexer.bridge_offset_fix] Setting timestamp appropietly
parent
c039ddbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
blocks.go
indexer/database/blocks.go
+3
-1
No files found.
indexer/database/blocks.go
View file @
3c978c01
...
...
@@ -189,12 +189,14 @@ func (db *blocksDB) LatestObservedEpoch(fromL1Height *big.Int, maxL1Range uint64
result
:=
db
.
gorm
.
Order
(
"number desc"
)
.
Take
(
&
header
)
if
result
.
Error
!=
nil
{
if
errors
.
Is
(
result
.
Error
,
gorm
.
ErrRecordNotFound
)
{
log
.
Warn
(
"Could not fetch recent L1 block heade"
,
"number"
,
fromL1Height
,
log
.
Warn
(
"Could not fetch recent L1 block heade
r
"
,
"number"
,
fromL1Height
,
"processor"
,
"bridge"
)
return
nil
,
nil
}
return
nil
,
result
.
Error
}
fromL1Height
=
header
.
Number
}
// Upper Bound (lowest timestamp indexed between L1/L2 bounded by `maxL1Range`)
...
...
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