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
49a5414c
Unverified
Commit
49a5414c
authored
Mar 16, 2023
by
mergify[bot]
Committed by
GitHub
Mar 16, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into refcell/batcher/tests
parents
4f05137d
bf9146b2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
284 additions
and
23 deletions
+284
-23
index.styl
docs/op-stack/src/.vuepress/styles/index.styl
+11
-9
channel_manager_test.go
op-batcher/batcher/channel_manager_test.go
+265
-7
txmgr.go
op-batcher/batcher/txmgr.go
+1
-1
l2_output_submitter.go
op-proposer/proposer/l2_output_submitter.go
+7
-6
No files found.
docs/op-stack/src/.vuepress/styles/index.styl
View file @
49a5414c
...
...
@@ -19,13 +19,13 @@ aside.sidebar {
p.sidebar-heading {
color: #323A43 !important;
font-family: 'Open Sans', sans-serif;
font-weight: 600;
font-weight: 600
!important
;
font-size: 14px !important;
line-height: 24px !important;
min-height: 36px;
margin-left:
32
px;
margin-left:
20
px;
padding: 8px 16px !important;
width: calc(100% - 6
4
px) !important;
width: calc(100% - 6
0
px) !important;
border-radius: 8px;
}
...
...
@@ -34,18 +34,20 @@ a.sidebar-link {
font-size: 14px !important;
line-height: 24px !important;
min-height: 36px;
margin-left: 32px;
margin-top: 3px;
margin-left: 20px;
padding: 8px 16px !important;
width: calc(100% - 6
4
px) !important;
width: calc(100% - 6
0
px) !important;
border-radius: 8px;
}
section.sidebar-group a.sidebar-link {
margin-left: 44px;
width: calc(100% - 64px) !important;
section.sidebar-group a.sidebar-link,
section.sidebar-group p.sidebar-heading.clickable {
margin-left: 32px;
width: calc(100% - 60px) !important;
}
.sidebar-links:not(.sidebar-group-items) > li > a.sidebar-link {
.sidebar-links:not(.sidebar-group-items) > li > a.sidebar-link {
font-weight: 600 !important;
color: #323A43 !important;
}
...
...
op-batcher/batcher/channel_manager_test.go
View file @
49a5414c
This diff is collapsed.
Click to expand it.
op-batcher/batcher/txmgr.go
View file @
49a5414c
...
...
@@ -55,7 +55,7 @@ func (t *TransactionManager) SendTransaction(ctx context.Context, data []byte) (
return
nil
,
fmt
.
Errorf
(
"failed to create tx: %w"
,
err
)
}
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
10
0
*
time
.
Second
)
// TODO: Select a timeout that makes sense here.
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
10
*
time
.
Minute
)
// TODO: Select a timeout that makes sense here.
defer
cancel
()
if
receipt
,
err
:=
t
.
txMgr
.
Send
(
ctx
,
tx
);
err
!=
nil
{
t
.
log
.
Warn
(
"unable to publish tx"
,
"err"
,
err
,
"data_size"
,
len
(
data
))
...
...
op-proposer/proposer/l2_output_submitter.go
View file @
49a5414c
...
...
@@ -384,30 +384,31 @@ func (l *L2OutputSubmitter) loop() {
for
{
select
{
case
<-
ticker
.
C
:
cCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
3
*
time
.
Minute
)
cCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
3
0
*
time
.
Second
)
output
,
shouldPropose
,
err
:=
l
.
FetchNextOutputInfo
(
cCtx
)
cancel
()
if
err
!=
nil
{
l
.
log
.
Error
(
"Failed to fetch next output"
,
"err"
,
err
)
cancel
()
break
}
if
!
shouldPropose
{
cancel
()
break
}
cCtx
,
cancel
=
context
.
WithTimeout
(
ctx
,
30
*
time
.
Second
)
tx
,
err
:=
l
.
CreateProposalTx
(
cCtx
,
output
)
cancel
()
if
err
!=
nil
{
l
.
log
.
Error
(
"Failed to create proposal transaction"
,
"err"
,
err
)
cancel
()
break
}
cCtx
,
cancel
=
context
.
WithTimeout
(
ctx
,
10
*
time
.
Minute
)
if
err
:=
l
.
SendTransaction
(
cCtx
,
tx
);
err
!=
nil
{
l
.
log
.
Error
(
"Failed to send proposal transaction"
,
"err"
,
err
)
cancel
()
break
}
else
{
cancel
()
}
cancel
()
case
<-
l
.
done
:
return
...
...
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