diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-13 13:53:42 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | e205d3e8dbc0e6e8878dd184afcfee931260a11f (patch) | |
tree | 45b4ac223f7babbcdc5a45aa3ecbf3c93091a65f /dex/config.go | |
parent | 912acafdcb9cba8c8036e8ae96b6b48c2c885238 (diff) | |
download | go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.gz go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.bz2 go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.lz go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.xz go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.zst go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.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 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 |