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
990e5197
Unverified
Commit
990e5197
authored
Nov 10, 2022
by
mergify[bot]
Committed by
GitHub
Nov 10, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3949 from ethereum-optimism/jg/fix_lints
Standardize & Fix Lints
parents
c4bb465e
ffdbcbca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
config.yml
.circleci/config.yml
+2
-3
l2_engine_api.go
op-e2e/actions/l2_engine_api.go
+3
-3
engine_queue.go
op-node/rollup/derive/engine_queue.go
+1
-1
l1_traversal.go
op-node/rollup/derive/l1_traversal.go
+2
-2
No files found.
.circleci/config.yml
View file @
990e5197
...
@@ -351,9 +351,8 @@ jobs:
...
@@ -351,9 +351,8 @@ jobs:
-
checkout
-
checkout
-
run
:
-
run
:
name
:
run lint
name
:
run lint
# command: golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint -e "errors.As" -e "errors.Is" ./...
command
:
|
command
:
|
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell ./...
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell
,errorlint -e "errors.As" -e "errors.Is"
./...
working_directory
:
<<parameters.module>>
working_directory
:
<<parameters.module>>
go-test
:
go-test
:
...
@@ -932,4 +931,4 @@ workflows:
...
@@ -932,4 +931,4 @@ workflows:
requires
:
requires
:
-
op-node-publish-dev
-
op-node-publish-dev
-
op-batcher-publish-dev
-
op-batcher-publish-dev
-
op-proposer-publish-dev
-
op-proposer-publish-dev
\ No newline at end of file
op-e2e/actions/l2_engine_api.go
View file @
990e5197
...
@@ -94,7 +94,7 @@ func (ea *L2EngineAPI) startBlock(parent common.Hash, params *eth.PayloadAttribu
...
@@ -94,7 +94,7 @@ func (ea *L2EngineAPI) startBlock(parent common.Hash, params *eth.PayloadAttribu
for
i
,
otx
:=
range
params
.
Transactions
{
for
i
,
otx
:=
range
params
.
Transactions
{
var
tx
types
.
Transaction
var
tx
types
.
Transaction
if
err
:=
tx
.
UnmarshalBinary
(
otx
);
err
!=
nil
{
if
err
:=
tx
.
UnmarshalBinary
(
otx
);
err
!=
nil
{
return
fmt
.
Errorf
(
"transaction %d is not valid: %
v
"
,
i
,
err
)
return
fmt
.
Errorf
(
"transaction %d is not valid: %
w
"
,
i
,
err
)
}
}
ea
.
l2BuildingState
.
Prepare
(
tx
.
Hash
(),
i
)
ea
.
l2BuildingState
.
Prepare
(
tx
.
Hash
(),
i
)
receipt
,
err
:=
core
.
ApplyTransaction
(
ea
.
l2Cfg
.
Config
,
ea
.
l2Chain
,
&
ea
.
l2BuildingHeader
.
Coinbase
,
receipt
,
err
:=
core
.
ApplyTransaction
(
ea
.
l2Cfg
.
Config
,
ea
.
l2Chain
,
&
ea
.
l2BuildingHeader
.
Coinbase
,
...
@@ -123,10 +123,10 @@ func (ea *L2EngineAPI) endBlock() (*types.Block, error) {
...
@@ -123,10 +123,10 @@ func (ea *L2EngineAPI) endBlock() (*types.Block, error) {
// Write state changes to db
// Write state changes to db
root
,
err
:=
ea
.
l2BuildingState
.
Commit
(
ea
.
l2Cfg
.
Config
.
IsEIP158
(
header
.
Number
))
root
,
err
:=
ea
.
l2BuildingState
.
Commit
(
ea
.
l2Cfg
.
Config
.
IsEIP158
(
header
.
Number
))
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"l2 state write error: %
v
"
,
err
)
return
nil
,
fmt
.
Errorf
(
"l2 state write error: %
w
"
,
err
)
}
}
if
err
:=
ea
.
l2BuildingState
.
Database
()
.
TrieDB
()
.
Commit
(
root
,
false
,
nil
);
err
!=
nil
{
if
err
:=
ea
.
l2BuildingState
.
Database
()
.
TrieDB
()
.
Commit
(
root
,
false
,
nil
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"l2 trie write error: %
v
"
,
err
)
return
nil
,
fmt
.
Errorf
(
"l2 trie write error: %
w
"
,
err
)
}
}
return
block
,
nil
return
block
,
nil
}
}
...
...
op-node/rollup/derive/engine_queue.go
View file @
990e5197
...
@@ -511,7 +511,7 @@ func (eq *EngineQueue) Reset(ctx context.Context, _ eth.L1BlockRef, _ eth.System
...
@@ -511,7 +511,7 @@ func (eq *EngineQueue) Reset(ctx context.Context, _ eth.L1BlockRef, _ eth.System
}
}
l1Cfg
,
err
:=
eq
.
engine
.
SystemConfigByL2Hash
(
ctx
,
pipelineL2
.
Hash
)
l1Cfg
,
err
:=
eq
.
engine
.
SystemConfigByL2Hash
(
ctx
,
pipelineL2
.
Hash
)
if
err
!=
nil
{
if
err
!=
nil
{
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch L1 config of L2 block %s: %
v
"
,
pipelineL2
.
ID
(),
err
))
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch L1 config of L2 block %s: %
w
"
,
pipelineL2
.
ID
(),
err
))
}
}
eq
.
log
.
Debug
(
"Reset engine queue"
,
"safeHead"
,
safe
,
"unsafe"
,
unsafe
,
"safe_timestamp"
,
safe
.
Time
,
"unsafe_timestamp"
,
unsafe
.
Time
,
"l1Origin"
,
l1Origin
)
eq
.
log
.
Debug
(
"Reset engine queue"
,
"safeHead"
,
safe
,
"unsafe"
,
unsafe
,
"safe_timestamp"
,
safe
.
Time
,
"unsafe_timestamp"
,
unsafe
.
Time
,
"l1Origin"
,
l1Origin
)
eq
.
unsafeHead
=
unsafe
eq
.
unsafeHead
=
unsafe
...
...
op-node/rollup/derive/l1_traversal.go
View file @
990e5197
...
@@ -73,11 +73,11 @@ func (l1t *L1Traversal) AdvanceL1Block(ctx context.Context) error {
...
@@ -73,11 +73,11 @@ func (l1t *L1Traversal) AdvanceL1Block(ctx context.Context) error {
// Parse L1 receipts of the given block and update the L1 system configuration
// Parse L1 receipts of the given block and update the L1 system configuration
_
,
receipts
,
err
:=
l1t
.
l1Blocks
.
FetchReceipts
(
ctx
,
nextL1Origin
.
Hash
)
_
,
receipts
,
err
:=
l1t
.
l1Blocks
.
FetchReceipts
(
ctx
,
nextL1Origin
.
Hash
)
if
err
!=
nil
{
if
err
!=
nil
{
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch receipts of L1 block %s for L1 sysCfg update: %
v
"
,
origin
,
err
))
return
NewTemporaryError
(
fmt
.
Errorf
(
"failed to fetch receipts of L1 block %s for L1 sysCfg update: %
w
"
,
origin
,
err
))
}
}
if
err
:=
UpdateSystemConfigWithL1Receipts
(
&
l1t
.
sysCfg
,
receipts
,
l1t
.
cfg
);
err
!=
nil
{
if
err
:=
UpdateSystemConfigWithL1Receipts
(
&
l1t
.
sysCfg
,
receipts
,
l1t
.
cfg
);
err
!=
nil
{
// the sysCfg changes should always be formatted correctly.
// the sysCfg changes should always be formatted correctly.
return
NewCriticalError
(
fmt
.
Errorf
(
"failed to update L1 sysCfg with receipts from block %s: %
v
"
,
origin
,
err
))
return
NewCriticalError
(
fmt
.
Errorf
(
"failed to update L1 sysCfg with receipts from block %s: %
w
"
,
origin
,
err
))
}
}
l1t
.
block
=
nextL1Origin
l1t
.
block
=
nextL1Origin
...
...
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