aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: latticeData supports config change (#190)Mission Liao2018-10-121-10/+10
| | | | | | | | | | | | | | | * Add test for num of chains changes. * Return error in latticeData.prepareBlock * Compare two positions * Modify chainStatus from height-based to index-based. * Fix consensus to use round variable * Remove sanity check in chainStatus * Fixup: refine sanity check - verify if round switching is required or not by chainTip's config. - make the logic in sanity check more clear - pospone acking relationship checking, they are more expensive to check.
* core: change interface (#193)Mission Liao2018-10-111-1/+1
| | | | | | | * Extract types.FinalizationResult * Change interface: - Application.BlockConfirmed returns whole block. - Application.BlockDelivered returns partial result.
* core: Add block randomness in compaction-chain module (#179)Jimmy Hu2018-10-081-1/+1
|
* core: find block in db (#174)Mission Liao2018-10-051-1/+4
| | | | | | | | | | | | | | | | | | | | * Make sure block pool is large enough It's safe to use a larger blockPool when the number of chains is smaller. * Construct latticeData via config. * Seek acked blocks in blockdb when unable to find them in memory cache. In previous implementation, we assume our cache in memory is enough to perform DAG's sanity check. However, it's no longer true when the number of chains might be changed between rounds. * Simplify purge. Remove the relation to purge block by chainStatus.
* core: Check sorted ack in sanity check (#173)Jimmy Hu2018-10-041-0/+11
|
* core: split lattice-data to another file (#172)Mission Liao2018-10-041-670/+0
| | | | | - Split latticeData to another file - Remove areAllAcksInLattice
* core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. ↵Jimmy Hu2018-10-041-0/+33
| | | | (#170)
* test: Short test applied to some long running tests (#168)Jimmy Hu2018-10-041-0/+5
|
* core: publish round based config (#165)Mission Liao2018-10-031-6/+15
|
* core: remove shard (#161)Mission Liao2018-10-021-0/+853