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
498e78ce
Commit
498e78ce
authored
Jan 31, 2023
by
Sebastian Stammler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-batcher: Add timeout trigger logging to channelManager
parent
43d516dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
channel_manager.go
op-batcher/batcher/channel_manager.go
+11
-1
No files found.
op-batcher/batcher/channel_manager.go
View file @
498e78ce
...
@@ -211,7 +211,7 @@ func (s *channelManager) TxData(l1Head eth.L1BlockRef) ([]byte, txID, error) {
...
@@ -211,7 +211,7 @@ func (s *channelManager) TxData(l1Head eth.L1BlockRef) ([]byte, txID, error) {
return
nil
,
txID
{},
err
return
nil
,
txID
{},
err
}
}
s
.
pendingChannel
.
TriggerTimeout
(
l1Head
.
Time
)
s
.
triggerTimeout
(
l1Head
)
if
err
:=
s
.
addBlocks
();
err
!=
nil
{
if
err
:=
s
.
addBlocks
();
err
!=
nil
{
return
nil
,
txID
{},
err
return
nil
,
txID
{},
err
...
@@ -239,6 +239,16 @@ func (s *channelManager) ensurePendingChannel(l1Head eth.L1BlockRef) error {
...
@@ -239,6 +239,16 @@ func (s *channelManager) ensurePendingChannel(l1Head eth.L1BlockRef) error {
return
nil
return
nil
}
}
func
(
s
*
channelManager
)
triggerTimeout
(
l1Head
eth
.
L1BlockRef
)
{
s
.
pendingChannel
.
TriggerTimeout
(
l1Head
.
Time
)
ferr
:=
s
.
pendingChannel
.
FullErr
()
s
.
log
.
Debug
(
"timeout triggered"
,
"l1Head"
,
l1Head
,
"timed_out"
,
errors
.
Is
(
ferr
,
ErrChannelTimedOut
),
"full_reason"
,
ferr
,
)
}
// addBlocks adds blocks from the blocks queue to the pending channel until
// addBlocks adds blocks from the blocks queue to the pending channel until
// either the queue got exhausted or the channel is full.
// either the queue got exhausted or the channel is full.
func
(
s
*
channelManager
)
addBlocks
()
error
{
func
(
s
*
channelManager
)
addBlocks
()
error
{
...
...
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