diff options
author | Sonic <sonic@cobinhood.com> | 2018-09-25 20:37:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 8335eac4a488716c396f114cbe7522919b97e224 (patch) | |
tree | c680248b9a7346e63ddde403689c2a484a43c4b4 /core | |
parent | 6f442cd7793daad014aa0d55b3b7320392c22f02 (diff) | |
download | dexon-8335eac4a488716c396f114cbe7522919b97e224.tar dexon-8335eac4a488716c396f114cbe7522919b97e224.tar.gz dexon-8335eac4a488716c396f114cbe7522919b97e224.tar.bz2 dexon-8335eac4a488716c396f114cbe7522919b97e224.tar.lz dexon-8335eac4a488716c396f114cbe7522919b97e224.tar.xz dexon-8335eac4a488716c396f114cbe7522919b97e224.tar.zst dexon-8335eac4a488716c396f114cbe7522919b97e224.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')
-rw-r--r-- | core/events.go | 7 |
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 } |