From 84139966773695c82170d784cdbc4c1e35687a6a Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sat, 13 Oct 2018 13:53:42 +0800 Subject: dex: pass p2p nodeKey to Dexon instance --- dex/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dex/config.go') 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 -- cgit v1.2.3