diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-15 11:31:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c (patch) | |
tree | 2b94a45f1690d2a3cedebadbfba5ff079bb8bea9 /p2p | |
parent | ee4b3e32c5040251b861a23cb8d8ddc41b232ce4 (diff) | |
download | go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.gz go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.bz2 go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.lz go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.xz go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.zst go-tangerine-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.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() { |