diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-13 13:53:42 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 84139966773695c82170d784cdbc4c1e35687a6a (patch) | |
tree | b9f5a9b28edc74b81f3a7715f4449cffda08604a /dex/config.go | |
parent | 1f22b1b5be0afc50b96f9ebcf4566cb7038ad3e1 (diff) | |
download | dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.gz dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.bz2 dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.lz dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.xz dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.zst dexon-84139966773695c82170d784cdbc4c1e35687a6a.zip |
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'dex/config.go')
-rw-r--r-- | dex/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dex/config.go b/dex/config.go index f7937f390..3afbf5db1 100644 --- a/dex/config.go +++ b/dex/config.go @@ -17,6 +17,7 @@ package dex import ( + "crypto/ecdsa" "os" "os/user" "path/filepath" @@ -72,6 +73,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 |