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
cc4af3b8
Unverified
Commit
cc4af3b8
authored
Jun 29, 2022
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: get rid of unused temp batcher db file
parent
74357a8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
+10
-26
setup.go
op-e2e/setup.go
+10
-26
No files found.
op-e2e/setup.go
View file @
cc4af3b8
...
@@ -3,9 +3,7 @@ package op_e2e
...
@@ -3,9 +3,7 @@ package op_e2e
import
(
import
(
"context"
"context"
"fmt"
"fmt"
"io/ioutil"
"math/big"
"math/big"
"os"
"strings"
"strings"
"time"
"time"
...
@@ -113,7 +111,6 @@ type System struct {
...
@@ -113,7 +111,6 @@ type System struct {
RolupGenesis
rollup
.
Genesis
RolupGenesis
rollup
.
Genesis
rollupNodes
map
[
string
]
*
rollupNode
.
OpNode
rollupNodes
map
[
string
]
*
rollupNode
.
OpNode
l2OutputSubmitter
*
l2os
.
L2OutputSubmitter
l2OutputSubmitter
*
l2os
.
L2OutputSubmitter
sequencerHistoryDBFileName
string
batchSubmitter
*
bss
.
BatchSubmitter
batchSubmitter
*
bss
.
BatchSubmitter
L2OOContractAddr
common
.
Address
L2OOContractAddr
common
.
Address
DepositContractAddr
common
.
Address
DepositContractAddr
common
.
Address
...
@@ -153,9 +150,6 @@ func (sys *System) Close() {
...
@@ -153,9 +150,6 @@ func (sys *System) Close() {
if
sys
.
batchSubmitter
!=
nil
{
if
sys
.
batchSubmitter
!=
nil
{
sys
.
batchSubmitter
.
Stop
()
sys
.
batchSubmitter
.
Stop
()
}
}
if
sys
.
sequencerHistoryDBFileName
!=
""
{
_
=
os
.
Remove
(
sys
.
sequencerHistoryDBFileName
)
}
for
_
,
node
:=
range
sys
.
rollupNodes
{
for
_
,
node
:=
range
sys
.
rollupNodes
{
node
.
Close
()
node
.
Close
()
...
@@ -570,15 +564,6 @@ func (cfg SystemConfig) start() (*System, error) {
...
@@ -570,15 +564,6 @@ func (cfg SystemConfig) start() (*System, error) {
return
nil
,
fmt
.
Errorf
(
"unable to start l2 output submitter: %w"
,
err
)
return
nil
,
fmt
.
Errorf
(
"unable to start l2 output submitter: %w"
,
err
)
}
}
sequencerHistoryDBFile
,
err
:=
ioutil
.
TempFile
(
""
,
"bss.*.json"
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"unable to create sequencer history db file: %w"
,
err
)
}
sys
.
sequencerHistoryDBFileName
=
sequencerHistoryDBFile
.
Name
()
if
err
=
sequencerHistoryDBFile
.
Close
();
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"unable to close sequencer history db file: %w"
,
err
)
}
// Batch Submitter
// Batch Submitter
sys
.
batchSubmitter
,
err
=
bss
.
NewBatchSubmitter
(
bss
.
Config
{
sys
.
batchSubmitter
,
err
=
bss
.
NewBatchSubmitter
(
bss
.
Config
{
L1EthRpc
:
sys
.
nodes
[
"l1"
]
.
WSEndpoint
(),
L1EthRpc
:
sys
.
nodes
[
"l1"
]
.
WSEndpoint
(),
...
@@ -594,7 +579,6 @@ func (cfg SystemConfig) start() (*System, error) {
...
@@ -594,7 +579,6 @@ func (cfg SystemConfig) start() (*System, error) {
LogTerminal
:
true
,
// ignored
LogTerminal
:
true
,
// ignored
Mnemonic
:
sys
.
cfg
.
Mnemonic
,
Mnemonic
:
sys
.
cfg
.
Mnemonic
,
SequencerHDPath
:
sys
.
cfg
.
BatchSubmitterHDPath
,
SequencerHDPath
:
sys
.
cfg
.
BatchSubmitterHDPath
,
SequencerHistoryDBFilename
:
sys
.
sequencerHistoryDBFileName
,
SequencerBatchInboxAddress
:
sys
.
cfg
.
RollupConfig
.
BatchInboxAddress
.
String
(),
SequencerBatchInboxAddress
:
sys
.
cfg
.
RollupConfig
.
BatchInboxAddress
.
String
(),
},
sys
.
cfg
.
Loggers
[
"batcher"
])
},
sys
.
cfg
.
Loggers
[
"batcher"
])
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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