Commit f3ed61e6 authored by Jason Yellick's avatar Jason Yellick

op-e2e: only add a signer key to l1

The current code adds the same signing key to all Ethereum clients
(including the L2 nodes).  I found this to be quite confusing when
parsing the code, and, it's unnecessary for the L2s to have signing
keys.
parent 12dc5093
...@@ -300,6 +300,7 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri ...@@ -300,6 +300,7 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri
return nil, nil, err return nil, nil, err
} }
if !l2 {
keydir := n.KeyStoreDir() keydir := n.KeyStoreDir()
scryptN := 2 scryptN := 2
scryptP := 1 scryptP := 1
...@@ -319,6 +320,7 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri ...@@ -319,6 +320,7 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri
return nil, nil, err return nil, nil, err
} }
} }
}
backend, err := eth.New(n, ethCfg) backend, err := eth.New(n, ethCfg)
if err != nil { if err != nil {
...@@ -341,5 +343,4 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri ...@@ -341,5 +343,4 @@ func createGethNode(l2 bool, nodeCfg *node.Config, ethCfg *ethconfig.Config, pri
} }
} }
return n, backend, nil return n, backend, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment