aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/stopper.go
Commit message (Collapse)AuthorAgeFilesLines
* big-bang: single chain (#446)Mission Liao2019-02-191-140/+0
|
* db: rename blockdb to db (#367)Mission Liao2018-12-131-9/+9
| | | | | | | | | | * 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
* core: syncer: add syncer (#346)haoping-ku2018-11-291-2/+2
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-7/+7
|
* test: add test.Stopper to stop by round (#255)Mission Liao2018-10-251-2/+56
|
* Rename validator* to node* (#120)Mission Liao2018-09-201-21/+21
|
* 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.
* test: add test.Scheduler (#58)Mission Liao2018-08-151-0/+86
When simulating execution of core.Consensus by passing packets through golang-channel or real-socket, we need to utilize time.Sleep and time.Now to simulate the required network/proposing latency. It's problematic when we try to test a simulation with long network latency. Instead, Scheduler would try to execute the event with minimum timestamp, thus time.Sleep is replaced with Scheduler.nextTick, and time.Now is replaced with Event.Time. Changes: - Add test.Scheduler. - Add test.Stopper interface to provide encapsulate different stop conditions for scheduler. - Add a reference implementation for test.Stopper, it will stop scheduler when all validators confirmed X blocks proposed from themselves. - Add a test scenario on core.Consensus that all validators are not byzantine.