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 /dex/protocol.go | |
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 'dex/protocol.go')
-rw-r--r-- | dex/protocol.go | 3 |
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) |