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@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit7d27d334ed128bf528c8a7fc16674d0a29481087 (patch)
treec32e491a0b8b722788ef801e873dabf0256f9058 /dex/protocol.go
parentf4d15de52885a472ffb4ae5982662ec3f41ebebc (diff)
downloadgo-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.gz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.bz2
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.lz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.xz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.zst
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.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 3507965ae..1907d18c8 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)