aboutsummaryrefslogtreecommitdiffstats
path: root/dex/peer.go
Commit message (Collapse)AuthorAgeFilesLines
* dex: replace NodeMeta with ENR (#132)Sonic2019-01-141-41/+39
|
* dex: add pull randomness (#105)Jimmy Hu2018-12-281-0/+20
| | | | | * vendor: sync to latest core * dex: Add PullRandomness
* dex: replace total difficulty with block number (#73)Sonic2018-12-191-39/+32
| | | | | | | In dexon, we don't "mine" and the blockchain won't and shouldn't fork, so there is no difficulty concept, just replace it with block number. Note: this commit only replace total difficulty related logic and code in dex, dex/downloader package.
* Fix lintWei-Ning Huang2018-12-191-6/+8
|
* dex: implement downloader for dexSonic2018-12-191-8/+17
| | | | | | | | | | | We need governance state to verify block's signature (randomness), but in ethereum fast sync mode, eth downloader only downloads the whole state of pivot block, so we don't have governance state to verify the downloaded block that is before pivot block if we don't processing transaction. To avoid running transactions, dex downloader also downloads the governance state (merkle proof and storage) at snapshot height of each round, so that we can verify blocks in fast sync mode.
* dex: Tx message optimization (#39)Jimmy Hu2018-12-191-6/+26
| | | | | | | | * dex: Add a tx queue in broadcast * Modify queue parameter * Priority select all messages except tx
* dex: peer: more fix on ID conversionWei-Ning Huang2018-12-191-53/+53
|
* dex: fix conflict caused by rebaseWei-Ning Huang2018-12-191-48/+62
|
* Rename import due to dexon-consensus renameWei-Ning Huang2018-12-191-3/+3
|
* dex: implement PullBlocks/PullVotes (#1)Jimmy Hu2018-12-191-1/+54
|
* dex: increase TX queue sizeWei-Ning Huang2018-12-191-1/+1
|
* vendor: sync consensus core and fix conflictWei-Ning Huang2018-12-191-8/+9
|
* dex: no need to rlp encode/decode now, consensus supports itSonic2018-12-191-10/+6
|
* dex: polish network related functionSonic2018-12-191-57/+120
|
* dex: let notary nodes connect to some dkg nodesSonic2018-12-191-38/+178
| | | | BuildConnection builds notary and dkg connections together
* dex: implement peerSetLoopSonic2018-12-191-0/+16
|
* dex: gov: using dex-consensus-core NodeSetCacheSonic2018-12-191-4/+24
|
* dex: add method to get NumChains, NotarySet, DKGSet easilySonic2018-12-191-6/+6
|
* dex: network: implement the network interfaceSonic2018-12-191-30/+200
|
* dex: remove DAO related codeSonic2018-12-191-3/+2
|
* dex: redesign p2p network topologySonic2018-12-191-66/+230
| | | | | | | | | | - 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.
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2018-12-191-4/+4
|
* dex: let peer able to send notary node infoSonic2018-12-191-3/+41
|
* dex: let peerSet able to manage notary peersSonic2018-12-191-1/+64
|
* Change package name from eth to dexSonic2018-12-191-1/+1
|
* Copy codebase from ethSonic2018-12-191-0/+522