aboutsummaryrefslogtreecommitdiffstats
path: root/core/syncer/agreement.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-5/+5
|
* Update import pathWei-Ning Huang2019-06-231-5/+5
|
* core: optimize syncer handling agreement result (#581)Jimmy Hu2019-05-031-12/+2
|
* core: refine VerifyAgreementResult (#553)Mission Liao2019-04-081-2/+12
| | | | | | | | * Pass notary set directly to VerifyAgreementResult * Fix core.Consensus * Fix syncer
* core: clean TODOs (#539)Mission Liao2019-04-011-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* syncer: confirmed block without randomness (#532)Mission Liao2019-03-291-4/+8
|
* core: bring back agreement result (#515)Jimmy Hu2019-03-271-8/+35
| | | | | | | | | | * core: bring back agreement result * add logger * Fix * fixup
* core: Remove agreement result (#514)Jimmy Hu2019-03-271-27/+92
| | | | | | | | | | | | * core: remove agreement result for round with randomness * remove agr test in syncer * fixup * remove randomness field from agreement result * modify test
* core: refine DKG aborting (#512)Mission Liao2019-03-231-9/+9
| | | | | | | | | | | | | | | | | | * Avoid aborting the DKG protocol registered later Although that DKG protocol would be registered after 1/2 round, both of them are triggered in separated go routine and we shouldn't assuem their execution order. * Capitalize logs * Add test * Return aborted when not running * Log DKG aborting result * Remove duplicated DKG abort
* syncer: fix syncer panic (#456)Mission Liao2019-02-271-3/+6
| | | | | | | | * Fix syncer panic We can't verify correctness for randomness result from rounds that corresponding configurations are not ready yet. * Fix blocks are not confirmed while they should be
* syncer: fix issues when switching to core.Consensus (#418)Mission Liao2019-01-111-1/+1
| | | | | | | | | | | | | | | | - when confirmed blocks passed to core.Consensus aren't continuous in position in some chain, the pulling would skip those missing blocks. - fix: when some block is missing, avoid adding it and all blocks after it to core.Consensus. - we need to avoid the receive channel of network module full. - fix: during switching to core.Consensus, we need to launch a dummy receiver to receive from receive channel of network module. - fix: between the period during core.Consensus created and before running, a dummy receiver is also required to receive from receive channel of network module.
* sync: add log for syncer to debug hanging issue (#407)Mission Liao2019-01-071-19/+47
| | | | | | | | | Besides adding logs, also include these minor fixes: * Accessing con.validatedChains under locking * Access con.latticeLastRound under locking * Fix incorrect waitGroup usage * Remove unused parameter in startAgreement
* core: fix stuffs (#401)Mission Liao2019-01-051-2/+2
| | | | | | | * Remove block recycling mechanism * Return directly when previous DKG is not finished. * Adjust some logging level * Skip pulling when hashes to pull is empty
* core: syncer: safe spawn go routine (#399)wmin02019-01-041-7/+0
|
* core: fix stuffs (#383)Mission Liao2018-12-261-2/+2
| | | | | | * Merge core.Consensus constructors * Downgrade severity of logs * Refine logic to add blocks from pool to lattice * Add test.LaunchDummyReceiver
* core: construct consensus from syncer (#352)Mission Liao2018-12-041-0/+4
|
* core: syncer: add syncer (#346)haoping-ku2018-11-291-0/+177