aboutsummaryrefslogtreecommitdiffstats
path: root/dex/protocol.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-15 11:31:40 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit5e32edda84a36b8675f58dbf87fb1c742df80d23 (patch)
tree62cf6f71605ef488c89eb5654b7a8abfc28ebde1 /dex/protocol.go
parentbc4075d5c095ea29f576f546fdeb245a0e00d4ea (diff)
downloaddexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.gz
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.bz2
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.lz
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.xz
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.zst
dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.zip
dex: add self node meta after Start
Diffstat (limited to 'dex/protocol.go')
-rw-r--r--dex/protocol.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/protocol.go b/dex/protocol.go
index 23997042d..c29062407 100644
--- a/dex/protocol.go
+++ b/dex/protocol.go
@@ -17,6 +17,7 @@
package dex
import (
+ "crypto/ecdsa"
"fmt"
"io"
"math/big"
@@ -134,6 +135,8 @@ type governance interface {
type p2pServer interface {
Self() *enode.Node
+ GetPrivateKey() *ecdsa.PrivateKey
+
AddDirectPeer(*enode.Node)
RemoveDirectPeer(*enode.Node)