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
f8b1bb6a
Unverified
Commit
f8b1bb6a
authored
Jul 31, 2024
by
KailMillor
Committed by
GitHub
Jul 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node/derive: linter fix (#11265)
* linter fix * use sentinel error * fix format
parent
d1499b04
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
l1_block_info.go
op-node/rollup/derive/l1_block_info.go
+6
-5
plasma_data_source.go
op-node/rollup/derive/plasma_data_source.go
+1
-1
No files found.
op-node/rollup/derive/l1_block_info.go
View file @
f8b1bb6a
...
...
@@ -30,6 +30,7 @@ var (
L1InfoFuncEcotoneBytes4
=
crypto
.
Keccak256
([]
byte
(
L1InfoFuncEcotoneSignature
))[
:
4
]
L1InfoDepositerAddress
=
common
.
HexToAddress
(
"0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001"
)
L1BlockAddress
=
predeploys
.
L1BlockAddr
ErrInvalidFormat
=
errors
.
New
(
"invalid ecotone l1 block info format"
)
)
const
(
...
...
@@ -210,19 +211,19 @@ func (info *L1BlockInfo) unmarshalBinaryEcotone(data []byte) error {
return
err
}
if
err
:=
binary
.
Read
(
r
,
binary
.
BigEndian
,
&
info
.
BaseFeeScalar
);
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid ecotone l1 block info format"
)
return
ErrInvalidFormat
}
if
err
:=
binary
.
Read
(
r
,
binary
.
BigEndian
,
&
info
.
BlobBaseFeeScalar
);
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid ecotone l1 block info format"
)
return
ErrInvalidFormat
}
if
err
:=
binary
.
Read
(
r
,
binary
.
BigEndian
,
&
info
.
SequenceNumber
);
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid ecotone l1 block info format"
)
return
ErrInvalidFormat
}
if
err
:=
binary
.
Read
(
r
,
binary
.
BigEndian
,
&
info
.
Time
);
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid ecotone l1 block info format"
)
return
ErrInvalidFormat
}
if
err
:=
binary
.
Read
(
r
,
binary
.
BigEndian
,
&
info
.
Number
);
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid ecotone l1 block info format"
)
return
ErrInvalidFormat
}
if
info
.
BaseFee
,
err
=
solabi
.
ReadUint256
(
r
);
err
!=
nil
{
return
err
...
...
op-node/rollup/derive/plasma_data_source.go
View file @
f8b1bb6a
...
...
@@ -39,7 +39,7 @@ func (s *PlasmaDataSource) Next(ctx context.Context) (eth.Data, error) {
// there is not commitment in the current origin.
if
err
:=
s
.
fetcher
.
AdvanceL1Origin
(
ctx
,
s
.
l1
,
s
.
id
.
ID
());
err
!=
nil
{
if
errors
.
Is
(
err
,
plasma
.
ErrReorgRequired
)
{
return
nil
,
NewResetError
(
fmt
.
Errorf
(
"new expired challenge"
))
return
nil
,
NewResetError
(
errors
.
New
(
"new expired challenge"
))
}
return
nil
,
NewTemporaryError
(
fmt
.
Errorf
(
"failed to advance plasma L1 origin: %w"
,
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