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
8936551c
Unverified
Commit
8936551c
authored
Jun 29, 2022
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: channel ID terminal string
parent
86648263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
channel_out.go
op-node/rollup/derive/channel_out.go
+2
-2
params.go
op-node/rollup/derive/params.go
+3
-6
No files found.
op-node/rollup/derive/channel_out.go
View file @
8936551c
...
...
@@ -32,8 +32,8 @@ type ChannelOut struct {
closed
bool
}
func
(
co
*
ChannelOut
)
ID
()
string
{
return
co
.
id
.
String
()
func
(
co
*
ChannelOut
)
ID
()
ChannelID
{
return
co
.
id
}
func
NewChannelOut
(
channelTime
uint64
)
(
*
ChannelOut
,
error
)
{
...
...
op-node/rollup/derive/params.go
View file @
8936551c
...
...
@@ -5,8 +5,6 @@ import (
"errors"
"fmt"
"strconv"
"github.com/ethereum-optimism/optimism/op-node/eth"
)
// count the tagging info as 200 in terms of buffer size.
...
...
@@ -68,8 +66,7 @@ func (id *ChannelID) UnmarshalText(text []byte) error {
return
nil
}
type
TaggedData
struct
{
L1Origin
eth
.
L1BlockRef
ChannelID
ChannelID
Data
[]
byte
// TerminalString implements log.TerminalStringer, formatting a string for console output during logging.
func
(
id
ChannelID
)
TerminalString
()
string
{
return
fmt
.
Sprintf
(
"%x..%x-%d"
,
id
.
Data
[
:
3
],
id
.
Data
[
29
:
],
id
.
Time
)
}
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