aboutsummaryrefslogtreecommitdiffstats
path: root/core/events.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-09-25 20:37:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit1d877a782b6416820fe8da016b8570ed632543af (patch)
tree0feec02ab48496c61e06e68f320d6a6416642154 /core/events.go
parente5916118811b81836259bdd116fcee6db1e12fa5 (diff)
downloaddexon-1d877a782b6416820fe8da016b8570ed632543af.tar
dexon-1d877a782b6416820fe8da016b8570ed632543af.tar.gz
dexon-1d877a782b6416820fe8da016b8570ed632543af.tar.bz2
dexon-1d877a782b6416820fe8da016b8570ed632543af.tar.lz
dexon-1d877a782b6416820fe8da016b8570ed632543af.tar.xz
dexon-1d877a782b6416820fe8da016b8570ed632543af.tar.zst
dexon-1d877a782b6416820fe8da016b8570ed632543af.zip
dex: redesign p2p network topology
- Let p2p server support direct connection and group connection. - Introduce node meta table to maintain IP of all nodes in node set, in memory and let nodes in the network can sync this table. - Let peerSet able to manage direct connections to notary set and dkg set. The mechanism to refresh the network topology when configuration round change is not done yet.
Diffstat (limited to 'core/events.go')
-rw-r--r--core/events.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/events.go b/core/events.go
index 02a083002..e76aa4784 100644
--- a/core/events.go
+++ b/core/events.go
@@ -46,3 +46,10 @@ type ChainSideEvent struct {
}
type ChainHeadEvent struct{ Block *types.Block }
+
+type NewNotarySetEvent struct {
+ Round uint64
+ Pubkeys map[string]struct{} // pubkeys in hex format
+}
+
+type NewCRSEvent struct{ Round uint64 }