aboutsummaryrefslogtreecommitdiffstats
path: root/core/constant.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-1/+1
|
* Update import pathWei-Ning Huang2019-06-231-1/+1
|
* core: clean TODOs (#539)Mission Liao2019-04-011-0/+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: first few round will not have DKG (#455)Jimmy Hu2019-03-041-0/+12
| | | | | | | | | | | | | | * core: Add DKGDelayRound constant * core: use constant value * core, utils: set DKGDelayRound for utils. * test: add dkgDelayRound to state * core: do not run dkg and crs for round < DKGDelayRound * fix test
* core: expose implicit round shift (#321)Mission Liao2018-11-131-3/+3
|
* core: notify consensus height for genesis rounds (#296)Mission Liao2018-11-051-0/+25
* Add notifyGenesisRounds * Log round for types.Vote and types.Block