aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/app_test.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-7/+7
|
* Update import pathWei-Ning Huang2019-06-231-7/+7
|
* core/crypto/dkg: concurrent access for gpk (#548)Jimmy Hu2019-04-041-1/+1
| | | | | * core/crypto/dkg: add benchmark * core/crypto/dkg: concurrent access for gpk
* core: clean TODOs (#539)Mission Liao2019-04-011-125/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core: fix block timestamp (#529) * Remove TODO dMoment is still required when the block timestamp of the genesis block is still need to be verified. * Refine timestamp when preparing blocks * Add timestamp checking in sanity check * Revert code to patch position when preparing * Remove TODOs that seems meaningless now * Remove TODOs related to refactoring * core: remove finalization (#531) - Remove types.FinalizationResult, randomness field would be moved to `types.Block` directly. - Add a placeholder for types.Block.Randomness field for blocks proposed from round < DKGDelayRound. (refer to core.NoRand) - Make the height of the genesis block starts from 1. (refer to types.GenesisHeight) - The fullnode's behavior of core.Governance.GetRoundHeight is (assume round-length is 100): - round: 0 -> 0 (we need to workaround this) - round: 1 -> 101 - round: 2 -> 201 - test.Governance already simulate this behavior, and the workaround is wrapped at utils.GetRoundHeight. * core: fix issues (#536) fixing code in these condition: - assigning position without initializing them and expected it's for genesis - compare height with 0
* core: remove initRoundBeginHeight paramenterMission Liao2019-03-221-6/+14
| | | | * Implement Governance.GetRoundHeight in test.Governance.
* core: height event handlers are not called (#509)Mission Liao2019-03-221-1/+2
| | | | | | | * Make utils.RoundEvent.ValidateNextRound non-blocking * Make NotifyHeight called blockingly * Trigger all height event handlers that should be triggered by initBlock * Fixup: forget the syncer part
* core: reset DKG (#502)Mission Liao2019-03-201-9/+7
| | | | | | | | | | | | | | * Allow utils.NodeSetCache to purge by rounds. * Purge utils.NodeSetCache when DKG reset. * Add a utils.RoundEvent handler to abort all previous running DKG * Fix test.App hangs in BlockDelivered when utils.RoundEvent is attached. ValidateNextRound is a blocking call and would block test.App.BlockDelivered.
* core: remove round from addDKG fuction (#501)Jimmy Hu2019-03-191-2/+2
|
* dkg: add reset field (#492)Mission Liao2019-03-171-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | * Add Reset fields to DKG types * Fix crypto part after adding Reset field * Prohibit DKG messages with different resetCount * Add TODO * Add reset parameter to dkgProtocol constructor * Add TODO * Fix inconsist hash to prepare CRS * Add reset parameter when runnning DKG * Fix test for utils.RoundEvent * Add dummy test to prohibit DKG messages with unexpected reset count * Fix test.App
* test: prohibit dkg (#489)Mission Liao2019-03-141-7/+145
| | | | | * Allow to prohibit DKG changes at governance layer. * Allow test.App to broadcast RoundEvent
* big-bang: single chain (#446)Mission Liao2019-02-191-139/+81
|
* core: remove Governance.NotifyRoundHeight (#431)Mission Liao2019-01-241-12/+12
|
* test: add witness preparation/verification (#386)Mission Liao2018-12-271-0/+67
|
* test: check causality (#372)Mission Liao2018-12-171-0/+15
|
* core: remove StronglyAcked (#347)Mission Liao2018-11-291-10/+9
|
* core: block deliver with position (#289)Mission Liao2018-11-021-1/+1
| | | | | This info is required when application layer needs to do something related to the underlying DAG, not just compaction chain.
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-8/+8
|
* core: core.Lattice supports config change (#276)Mission Liao2018-11-011-10/+10
| | | | | | | | | | | Besides making core.Lattice supports config change, This PR also include the first test for below scenario: - Configuration changes are registered before test running - Those changes are carried/broadcasted as payload of blocks - Only one node would initiate these changes, however, all nodes would finally receive/apply those changes to their own test.Governance instance.
* core: lattice sync (#257)Jimmy Hu2018-10-251-6/+22
|
* core: total-ordering: change early flag to mode (#227)Haoping Ku2018-10-191-9/+10
| | | * core: total-ordering: change early flag to mode
* core: change interface (#193)Mission Liao2018-10-111-3/+2
| | | | | | | * Extract types.FinalizationResult * Change interface: - Application.BlockConfirmed returns whole block. - Application.BlockDelivered returns partial result.
* core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. ↵Jimmy Hu2018-10-041-4/+3
| | | | (#170)
* core: update data model to reflect new model (#157)Wei-Ning Huang2018-10-011-5/+0
| | | | | | Update data model: 1) Remove witness ack. 2) Add round to block. 3) Update governance interface.
* Fix naming of methods (#134)Mission Liao2018-09-251-8/+8
| | | | | | - BlockDeliver -> BlockDelivered - TotalOrderingDeliver -> TotalOrderingDelivered - WitnessAckDeliver -> WitnessAckDelivered - VerifyPayload -> VerifyPayloads
* core: add debug (#133)Mission Liao2018-09-251-6/+15
| | | | | | | | | | | | | | | | | | | | | * Split interface * Rename nonblocking-application to nonblocking Parts needs nonblocking gets more. * Implement core.nonBlocking based on interface split * Fix: the witness parent hash could be parent on compaction chain. * Rename Application.DeliverBlock to BlockDeliver To sync with naming of other methods. * Change methods' fingerprint - BlockConfirmed provides block hash only. - BlockDeliver provde a whole block.
* core: rename Notary (Acks) to Witness (#118)Wei-Ning Huang2018-09-191-5/+5
|
* core: Notary ack application. (#70)Jimmy Hu2018-08-221-0/+26
|
* simulation: add simulation with scheduler (#71)Mission Liao2018-08-211-5/+5
| | | | | | | | - Add new field in test.Event: HistoryIndex HistoryIndex allow us to access them by their position in event history. - Record local time in test.App when receiving events. - Add statisitics module for slices of test.Event. - add new command line utility *dexcon-simulation-with-scheduler to verify the execution time of core.Consensus.
* test: refine test utility (#61)Mission Liao2018-08-151-0/+142
* Add functionality to test.App * Add test utility to generate slices of types.ValidatorID