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
f3ccdf76
Unverified
Commit
f3ccdf76
authored
Aug 18, 2023
by
mergify[bot]
Committed by
GitHub
Aug 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into aj/cannon-multigame-e2e
parents
3cf40b2d
34e26391
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
l1_etl.go
indexer/etl/l1_etl.go
+3
-3
l2_etl.go
indexer/etl/l2_etl.go
+3
-3
No files found.
indexer/etl/l1_etl.go
View file @
f3ccdf76
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum-optimism/optimism/indexer/config"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/indexer/node"
"github.com/ethereum-optimism/optimism/op-service/
backoff
"
"github.com/ethereum-optimism/optimism/op-service/
retry
"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -96,8 +96,8 @@ func (l1Etl *L1ETL) Start(ctx context.Context) error {
}
// Continually try to persist this batch. If it fails after 10 attempts, we simply error out
backoffStrategy
:=
&
backoff
.
ExponentialStrategy
{
Min
:
1000
,
Max
:
20
_000
,
MaxJitter
:
250
}
_
,
err
:=
backoff
.
Do
[
interface
{}](
ctx
,
10
,
backoff
Strategy
,
func
()
(
interface
{},
error
)
{
retryStrategy
:=
&
retry
.
ExponentialStrategy
{
Min
:
1000
,
Max
:
20
_000
,
MaxJitter
:
250
}
_
,
err
:=
retry
.
Do
[
interface
{}](
ctx
,
10
,
retry
Strategy
,
func
()
(
interface
{},
error
)
{
err
:=
l1Etl
.
db
.
Transaction
(
func
(
tx
*
database
.
DB
)
error
{
if
err
:=
tx
.
Blocks
.
StoreL1BlockHeaders
(
l1BlockHeaders
);
err
!=
nil
{
return
err
...
...
indexer/etl/l2_etl.go
View file @
f3ccdf76
...
...
@@ -6,7 +6,7 @@ import (
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/indexer/node"
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-service/
backoff
"
"github.com/ethereum-optimism/optimism/op-service/
retry
"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
@@ -79,8 +79,8 @@ func (l2Etl *L2ETL) Start(ctx context.Context) error {
}
// Continually try to persist this batch. If it fails after 5 attempts, we simply error out
backoffStrategy
:=
&
backoff
.
ExponentialStrategy
{
Min
:
1000
,
Max
:
20
_000
,
MaxJitter
:
250
}
_
,
err
:=
backoff
.
Do
[
interface
{}](
ctx
,
10
,
backoff
Strategy
,
func
()
(
interface
{},
error
)
{
retryStrategy
:=
&
retry
.
ExponentialStrategy
{
Min
:
1000
,
Max
:
20
_000
,
MaxJitter
:
250
}
_
,
err
:=
retry
.
Do
[
interface
{}](
ctx
,
10
,
retry
Strategy
,
func
()
(
interface
{},
error
)
{
err
:=
l2Etl
.
db
.
Transaction
(
func
(
tx
*
database
.
DB
)
error
{
if
err
:=
tx
.
Blocks
.
StoreL2BlockHeaders
(
l2BlockHeaders
);
err
!=
nil
{
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