aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
Commit message (Collapse)AuthorAgeFilesLines
* core: Modify Consensus interface (#45)Jimmy Hu2018-08-101-1/+1
|
* core: update governance interface and move K into config (#40)Wei-Ning Huang2018-08-105-89/+125
|
* Add genesis block to simulation app. (#44)Jimmy Hu2018-08-101-0/+1
|
* Fix the bug preventing us from testing large group when using TCP-Local (#42)Mission Liao2018-08-102-21/+24
| | | | | | | | | | | | | | | | | | | | * Fix the issue that processing genesis block twice. - Restore the mechanism to avoid sending block to proposer. * Fix the 'keep-alive' not working Quote from comments of net/http/request For client requests, setting this field prevents re-use of TCP connections between requests to the same hosts, as if Transport.DisableKeepAlives were set. * Remove useless field * Fix the test bug: I should provide '3' when test K=3 * Fixup: the parent hash of genesis block should be zero
* core: Deliver only Hash to Application. (#43)Jimmy Hu2018-08-102-9/+17
|
* core: Add Block.IsGenesis() and set Block.ParentHash to 0 in genesis block. ↵Jimmy Hu2018-08-091-4/+3
| | | | (#37)
* simulation: Fix k8s simulation issues. (#36)Jimmy Hu2018-08-092-9/+38
| | | | | | | | | | | | * Refine peer server * k8s ignore * Keep peer server alive on k8s * Stop validators from accepting new blocks after peer server has shut down. * Add comment
* core: Add Consensus to replace core.Blocklattice (#35)Mission Liao2018-08-085-36/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make Sequencer return slice of blocks. * Fix naming issue The function 'getHeightVecto' would return ackingStatusVector. * Fix comment error. * Add methods to collect info when proposing blocks. * Add test.App * Add test.Gov * Move this type to core.types to avoid cyclic import. * Add core.Consensus * Move getMedianTime, interpoTime to util These functions are not depending on members of core.consensusTimestamp and is required when testing core.Consensus. * Make sure types.Block.Clone would copy critical fields. * Remove core.blocklattice * Define 'infinity' in core/total-ordering This definition is defined in core/blocklattice originally. * Fix a bug when processing the same block twice. * Integrate simulation with core.Consensus core.Consensus is a replacement of core.Blocklattice * Fix the comment to use sigular form. * Move lock mechanism to sub modules. * phi should be 2*fmax+1 * Fixup: should aborting when the validator is added * Fix for new block fields * Fix the bug that the total ordering sequence is wrong.
* simulation: Show internal and external timestamp latency. (#30)Jimmy Hu2018-08-074-17/+193
|
* simulation: tcp-network: force http.Client to reuse connection (#33)Wei-Ning Huang2018-08-061-15/+22
| | | Force connection reuse and TCP keep alive by using the same http client for all reqeusts.
* simulation: free resource after use and misc fix for k8s mode (#31)Wei-Ning Huang2018-08-068-14/+63
|
* Remove timestamp generating function in validator (#25)Jimmy Hu2018-08-011-8/+0
|
* core: refine Application interface and add Governance interface (#24)Wei-Ning Huang2018-07-311-7/+7
| | | | | | | Add a new Governance interface for interaction with the governance contract. Also remove the ValidateBlock call in application interface as the application should validate it before putting it into the consensus module. A new BlockConverter interface is also added. The consensus module should accept the BlockConverter interface in future implementation, and use the Block() function to get the underlying block info.
* blockdb: allow to dump blocks to json-encoded fileMission Liao2018-07-312-10/+9
| | | | | | | | | | | | - Allow to dump blockdb to a json file - Compared to leveldb, a json file is easier to trace. - Add interfaces block database: - Close would be required by database that needs cleanup. - BlockIterator is required when we need to access 'all' blocks, adding a new method 'GetAll' as the constructor for iterators. - Remove GetByValidatorAndHeight from blockdb.Reader - This function is not used anywhere, to make interface minimum, remove it. - Fix typo: backend -> backed
* Print block confirm latency when Peer Server stopped. (#23)Jimmy Hu2018-07-318-26/+67
|
* Print confirmed blocks per second when Peer Server stopped. (#22)Jimmy Hu2018-07-312-0/+47
|
* Add a config that PeerServer can shutdown after receiving enough of block. (#19)Jimmy Hu2018-07-308-22/+240
|
* Verify the Total Ordering Algorithm in peerServer in tcp mode (#11)Jimmy Hu2018-07-269-16/+328
| | | Verify the Total Ordering Algorithm in peerServer in tcp mode.
* simulation: fix tcp-local network simulation (#8)Wei-Ning Huang2018-07-232-2/+6
| | | | | | * simulation: fix tcp-local network simulation * fixup
* Implement simulation on a real network (#5)Wei-Ning Huang2018-07-2014-129/+720
| | | simulation: implement simulation on a real network
* core: refactor acking relationship (#3)Wei-Ning Huang2018-07-181-1/+1
| | | | | | | | | * core: refactor acking relationship Use AckBy only, and remove IndirectAcks. Also fix the issue where validator is not filling Height when proposing block.
* Initial implementation of DEXON consensus algorithmWei-Ning Huang2018-07-167-0/+521