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
cb8ccc80
Unverified
Commit
cb8ccc80
authored
Mar 06, 2023
by
mergify[bot]
Committed by
GitHub
Mar 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into aj/discovery-timeout
parents
d6586bb9
acf503bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
setup.go
op-e2e/setup.go
+1
-1
load_signer.go
op-node/p2p/cli/load_signer.go
+1
-1
gossip_test.go
op-node/p2p/gossip_test.go
+5
-1
signer.go
op-node/p2p/signer.go
+0
-4
No files found.
op-e2e/setup.go
View file @
cb8ccc80
...
...
@@ -464,7 +464,7 @@ func (cfg SystemConfig) Start() (*System, error) {
c
.
P2P
=
p
if
c
.
Driver
.
SequencerEnabled
{
c
.
P2PSigner
=
&
p2p
.
PreparedSigner
{
Signer
:
p2p
.
NewL
egacyL
ocalSigner
(
cfg
.
Secrets
.
SequencerP2P
)}
c
.
P2PSigner
=
&
p2p
.
PreparedSigner
{
Signer
:
p2p
.
NewLocalSigner
(
cfg
.
Secrets
.
SequencerP2P
)}
}
}
...
...
op-node/p2p/cli/load_signer.go
View file @
cb8ccc80
...
...
@@ -24,7 +24,7 @@ func LoadSignerSetup(ctx *cli.Context) (p2p.SignerSetup, error) {
return
nil
,
fmt
.
Errorf
(
"failed to read batch submitter key: %w"
,
err
)
}
return
&
p2p
.
PreparedSigner
{
Signer
:
p2p
.
NewL
egacyL
ocalSigner
(
priv
)},
nil
return
&
p2p
.
PreparedSigner
{
Signer
:
p2p
.
NewLocalSigner
(
priv
)},
nil
}
// TODO: create remote signer
...
...
op-node/p2p/gossip_test.go
View file @
cb8ccc80
...
...
@@ -49,7 +49,7 @@ func TestVerifyBlockSignature(t *testing.T) {
}{
{
name
:
"Legacy"
,
newSigner
:
N
ewLegacyLocalSigner
,
newSigner
:
n
ewLegacyLocalSigner
,
},
{
name
:
"Updated"
,
...
...
@@ -102,3 +102,7 @@ func TestVerifyBlockSignature(t *testing.T) {
})
}
}
func
newLegacyLocalSigner
(
priv
*
ecdsa
.
PrivateKey
)
*
LocalSigner
{
return
&
LocalSigner
{
priv
:
priv
,
hasher
:
LegacySigningHash
}
}
op-node/p2p/signer.go
View file @
cb8ccc80
...
...
@@ -64,10 +64,6 @@ type LocalSigner struct {
hasher
func
(
domain
[
32
]
byte
,
chainID
*
big
.
Int
,
payloadBytes
[]
byte
)
(
common
.
Hash
,
error
)
}
func
NewLegacyLocalSigner
(
priv
*
ecdsa
.
PrivateKey
)
*
LocalSigner
{
return
&
LocalSigner
{
priv
:
priv
,
hasher
:
LegacySigningHash
}
}
func
NewLocalSigner
(
priv
*
ecdsa
.
PrivateKey
)
*
LocalSigner
{
return
&
LocalSigner
{
priv
:
priv
,
hasher
:
SigningHash
}
}
...
...
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