diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-15 11:31:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:53 +0800 |
commit | 08c7e4c7c6fccf894c0e004a416355cfc82ec5d7 (patch) | |
tree | ca1e822148e917f7dada30ebc4a92b7174098a31 /p2p | |
parent | 2e6d95317f24212550352f9726cc18dbb390fb63 (diff) | |
download | dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar.gz dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar.bz2 dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar.lz dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar.xz dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.tar.zst dexon-08c7e4c7c6fccf894c0e004a416355cfc82ec5d7.zip |
dex: add self node meta after Start
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/p2p/server.go b/p2p/server.go index a58673342..8cd2863b3 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -441,6 +441,10 @@ func (srv *Server) tcpAddr(listener net.Listener) net.TCPAddr { return addr } +func (srv *Server) GetPrivateKey() *ecdsa.PrivateKey { + return srv.PrivateKey +} + // Stop terminates the server and all active peer connections. // It blocks until all active connections have been closed. func (srv *Server) Stop() { |