aboutsummaryrefslogtreecommitdiffstats
path: root/dex/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-13 13:53:42 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commitfb8fb70b0c63e400a3779d36c4986e0d4520c141 (patch)
treeade151c07084a1237f30bc374bb21d1c3918bbd2 /dex/config.go
parent83286d09174c739dcd94709377b3adb6ad55d80b (diff)
downloaddexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.gz
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.bz2
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.lz
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.xz
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.zst
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.zip
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'dex/config.go')
-rw-r--r--dex/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/dex/config.go b/dex/config.go
index df5babc73..7e33ae05f 100644
--- a/dex/config.go
+++ b/dex/config.go
@@ -17,6 +17,7 @@
package dex
import (
+ "crypto/ecdsa"
"math/big"
"os"
"os/user"
@@ -73,6 +74,9 @@ type Config struct {
// If nil, the Ethereum main net block is used.
Genesis *core.Genesis `toml:",omitempty"`
+ // PrivateKey, also represents the node identity.
+ PrivateKey *ecdsa.PrivateKey `toml:",omitempty"`
+
// Protocol options
NetworkId uint64 // Network ID to use for selecting peers to connect to
SyncMode downloader.SyncMode