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
de1ea955
Commit
de1ea955
authored
Mar 17, 2022
by
inphi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nits
parent
68106135
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
transaction_meta.go
l2geth/core/types/transaction_meta.go
+3
-3
sync_service.go
l2geth/rollup/sync_service.go
+1
-0
No files found.
l2geth/core/types/transaction_meta.go
View file @
de1ea955
...
...
@@ -35,11 +35,11 @@ func (q QueueOrigin) String() string {
func
(
q
QueueOrigin
)
MarshalJSON
()
([]
byte
,
error
)
{
switch
q
{
case
QueueOriginSequencer
:
return
[]
byte
(
"
\"
sequencer
\"
"
),
nil
return
[]
byte
(
`"sequencer"`
),
nil
case
QueueOriginL1ToL2
:
return
[]
byte
(
"
\"
l1
\"
"
),
nil
return
[]
byte
(
`"l1"`
),
nil
default
:
return
[]
byte
(
"
\"\"
"
),
nil
return
[]
byte
(
`""`
),
nil
}
}
...
...
l2geth/rollup/sync_service.go
View file @
de1ea955
...
...
@@ -165,6 +165,7 @@ func NewSyncService(ctx context.Context, cfg Config, txpool *core.TxPool, bc *co
// a remote server that indexes the layer one contracts. Place this
// code behind this if statement so that this can run without the
// requirement of the remote server being up.
// If we're syncing from the Queue, then we can skip all this and rely on L2 published transactions
if
service
.
enable
&&
service
.
backend
!=
BackendQueue
{
// Ensure that the rollup client can connect to a remote server
// before starting. Retry until it can connect.
...
...
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