aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/network.go
Commit message (Collapse)AuthorAgeFilesLines
* core: add report bad peer interface to network (#559)Jimmy Hu2019-04-121-6/+27
|
* core: clean TODOs (#539)Mission Liao2019-04-011-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: bring back agreement result (#515)Jimmy Hu2019-03-271-5/+8
| | | | | | | | | | * core: bring back agreement result * add logger * Fix * fixup
* core: Remove agreement result (#514)Jimmy Hu2019-03-271-7/+93
| | | | | | | | | | | | * core: remove agreement result for round with randomness * remove agr test in syncer * fixup * remove randomness field from agreement result * modify test
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-210/+62
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: reset DKG (#502)Mission Liao2019-03-201-2/+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: switch round by block height (#450)Mission Liao2019-02-201-1/+1
|
* big-bang: single chain (#446)Mission Liao2019-02-191-20/+11
|
* integration_test: Add a byzantine test (#447)Jimmy Hu2019-02-151-3/+5
| | | | | | * integration_test: Add a byzantine test * test: fix flaky TestPullVote tes
* simulation: fix k8s dmoment issue (#416)Jimmy Hu2019-01-091-0/+6
| | | | | | * Handshake with server dmoment * Start simulation from dMoment * Update k8s config
* simulation: Fix simulation stuffs (#405)Jimmy Hu2019-01-071-0/+8
| | | | | | * test: fix marshal randomness pullrequest * Add result for witness latency
* simulation: add latency for gossip (#389)Mission Liao2019-01-031-91/+110
|
* core: pull block random (#384)Jimmy Hu2018-12-261-39/+139
| | | | | | | | * Add PullRandomness to interface * Add pendingBlocksWithoutRandomness to compactionChain * Pull randomness every 1 second
* core: syncer: add syncer (#346)haoping-ku2018-11-291-0/+5
|
* core, test: Fix various issues (#337)Jimmy Hu2018-11-191-1/+1
|
* test: fix network (#328)Mission Liao2018-11-151-61/+90
| | | | * Broadcast to set of node instead of broadcasting when attaching cache. * Fix pull blocks
* test: add integration test (#315)Mission Liao2018-11-111-5/+22
| | | | | | * Rename NonByzantineTestSuite to WithSchedulerTestsuite * Add a method to query the latest position delivered * Add integration test for core.Consensus * Show detailed list for test cases in CI
* test: implement pulling in network layer (#314)Mission Liao2018-11-091-43/+319
| | | | | | | * Add definition for test.PullRequest * Cache notary sets for each round in network module * Cache peers as nodeID in network module. * Implement pull blocks * Implement pull vote
* simulation: use test.Governacne in simulation (#311)Mission Liao2018-11-081-19/+48
| | | | | | | | | | | | * Move simulation.Network to test package * Use test.Governance in simulation * Pack/Apply state request in blocks payload * Add Governance.SwitchToRemoteMode This would trigger governance to broadcast pending state change requests when changes. * Allow to marshal/unmarshal packedStateChanges * Attach test.Network and test.State
* test: move simulation.network to test package (#297)Mission Liao2018-11-051-0/+293