aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: start next BA only when previous block delivered (#571)Jimmy Hu2019-04-151-0/+1
|
* core: optimize message handle (#542)Jimmy Hu2019-04-021-9/+28
| | | | | | | | * core: optimize for handling agremenet result * core: disable clone vote * core: touch npks
* core: clean TODOs (#539)Mission Liao2019-04-011-34/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: sign block hash for empty block (#517)Jimmy Hu2019-03-271-2/+109
| | | | | | * core: sign block hash for empty block * run force synced empty block at startup
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-142/+12
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: abort hang DKG (#508)Mission Liao2019-03-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | * Capitalize log * Fix DKG aborting hangs Make sure reset cc.dkg to nil in runDKG * Remember to purge tsig verfier too * Replace abortCh with context.Context * Fix obvious bug * Fixup: forever blockin at Wait method when runDKG is not called * Fixup: fix corner case If the Add(1) moved to runDKG under cc.dkgLock, we may not catch it after unlocking cc.dkgLock. * fixup
* core, syncer: integrate utils.RoundEvent (#490)Mission Liao2019-03-161-23/+51
|
* test: prohibit dkg (#489)Mission Liao2019-03-141-1/+1
| | | | | * Allow to prohibit DKG changes at governance layer. * Allow test.App to broadcast RoundEvent
* utils: add RoundEvent (#482)Mission Liao2019-03-131-2/+2
| | | | | * Move core.roundBasedConfig to core/utils * Refine utils.RoundBasedConfig * Add utils.RoundEvent
* core: reduce blockrandomness message (#477)Jimmy Hu2019-03-101-0/+25
| | | | | | * core: reduce blockchain randomness msg * add test
* core: fix empty parent not found (#470)Mission Liao2019-03-081-10/+35
| | | | * Do not panic when empty block is unable to propose * Make blockChain able to handle pulled empty block
* core: fix panic by duplicated pending blocks (#460)Mission Liao2019-02-271-2/+4
|
* core: Change RoundInterval to RoundLength (#453)Jimmy Hu2019-02-261-5/+5
|
* core: switch round by block height (#450)Mission Liao2019-02-201-23/+34
|
* big-bang: single chain (#446)Mission Liao2019-02-191-0/+462