aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/revealer_test.go
Commit message (Collapse)AuthorAgeFilesLines
* 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.