aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/revealer_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: Remove max block interval (#287)Jimmy Hu2018-11-021-2/+1
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-8/+8
|
* core: lattice sync (#257)Jimmy Hu2018-10-251-0/+23
|
* core: blocks generation supports rounds (#196)Mission Liao2018-10-141-11/+17
| | | | | | | * Block proposing based on timestamp, instead of count of blocks generated. * Add method to find tips of each round in blockdb. * Block proposing based on tips of last round found on blockdb.
* test: fix block generator (#126)Mission Liao2018-09-211-6/+5
| | | | | | | | * Generate correct hash/signature when generating blocks. * Refine naming, types. - type of chainNum should be uint32 by default - rename blockCount to blockNum - rename nodeCount to chainNum
* Rename validator* to node* (#120)Mission Liao2018-09-201-6/+6
|
* core: move blockdb into core package and minor change on governance ↵Wei-Ning Huang2018-09-171-1/+1
| | | | | | | interface (#110) Since third party apps will possibly implement their only blockdb class, it make sense for the interface to be in core. Also add GetNumShards into the governance interface.
* core: tune total ordering performance (#81)Mission Liao2018-08-301-1/+2
| | | | | - Replace map with slice Compared to slice, accessing to map is slower and the memory usage is inefficient.
* core: Hash block in Consensus.PrepareBlock. (#46)Jimmy Hu2018-08-121-7/+7
| | | | | | | | * Add hash to block * Check block hash in Consensus.sanityCheck * Add hashBlockFn in block generator.go
* test: random blocks generator (#26)Mission Liao2018-08-031-0/+134
* Add blocks generator. This helper would randomly generate blocks that forms valid DAGs. * Add revealer Revealer is an extension of blockdb.BlockIterator. The block sequence from 'Next' method would be either randomly (see RandomRevealer) or meeting some specific condition (ex. forming a DAG, see RandomDAGRevealer). * Add test for sequencer based on random blocks. * core: refine Application interface and add Governance interface (#24) 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.