aboutsummaryrefslogtreecommitdiffstats
path: root/core/lattice-data_test.go
Commit message (Collapse)AuthorAgeFilesLines
* big-bang: single chain (#446)Mission Liao2019-02-191-707/+0
|
* core: Fix BA3.0 (#420)Jimmy Hu2019-01-151-13/+17
| | | | | | | | | | | | | | | | | | * Add Restart to Ticker * Change pre allocated size * Return NextTime from lattice * Few hacky fixes for BA * PullVote in FastRollback state * Add shallowBlock for agreementResult * Extend period * Fixup
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-2/+2
|
* db: rename blockdb to db (#367)Mission Liao2018-12-131-18/+18
| | | | | | | | | | * Rename blockdb package to db * Rename 'BlockDB' to 'DB' * Make all methods in db specific for ''block'. * Rename db.BlockDatabase to db.Database * Rename revealer to block-revealer * Rename test.Revealer to test.BlockRevealer
* ci: some change to circleci (#360)Jimmy Hu2018-12-061-2/+2
| | | | | | | | * CircleCI: change to go1.11 * fix gofmt * Reduce test size
* core: support NumChains change for BA modules (#339)Mission Liao2018-11-201-5/+9
|
* utils: add utils package (#327)Mission Liao2018-11-141-1/+2
|
* core: lattice, total-ordering: remove newGenesisConfig (#308)haoping-ku2018-11-081-11/+6
| | | | | | * core: lattice, total-ordering: remove newGenesisConfig * fixup
* core: lattice-data: fix details and add test (#299)haoping-ku2018-11-061-5/+22
|
* core: Remove max block interval (#287)Jimmy Hu2018-11-021-13/+3
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-9/+9
|
* core: lattice sync (#257)Jimmy Hu2018-10-251-3/+3
|
* core: prepare empty block if null block is confirmed by BA. (#231)Jimmy Hu2018-10-231-0/+12
|
* core: check if flush is required when round switching in total-ordering (#197)Mission Liao2018-10-151-53/+48
|
* core: blocks generation supports rounds (#196)Mission Liao2018-10-141-11/+18
| | | | | | | * 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.
* core: latticeData supports config change (#190)Mission Liao2018-10-121-323/+307
| | | | | | | | | | | | | | | * 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: find block in db (#174)Mission Liao2018-10-051-10/+29
| | | | | | | | | | | | | | | | | | | | * 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: split lattice-data to another file (#172)Mission Liao2018-10-041-0/+679
- Split latticeData to another file - Remove areAllAcksInLattice