aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-mgr.go
Commit message (Collapse)AuthorAgeFilesLines
* core: switch round by block height (#450)Mission Liao2019-02-201-97/+61
|
* big-bang: single chain (#446)Mission Liao2019-02-191-167/+93
|
* core: change pull vote position (#449)Jimmy Hu2019-02-191-6/+6
|
* core: Optimize message processing (#434)Jimmy Hu2019-01-261-52/+55
| | | | | | | | | | | | | | | | * core: more strict with 'first' agreement result * core: Fast filter randomness result and agreement result * Optimize touchAgreementResult * core: remove lock in checking first block randomness * psig to go routine * polish * core: polish
* core: Reduce rebroadcast BA result (#433)Jimmy Hu2019-01-251-0/+24
| | | | | | | | | | * core: reduce processing duplicated agreement result * 放這邊應該比較好 * 放這邊才對 * Add TODO
* core: Add vote filter (#430)Jimmy Hu2019-01-241-2/+13
| | | | | | | | | | | | * core: ignore usless vote * core: export SkipBlockHash and NullBlockHash * core: add VoteFilter * Add test * New VoteFilter for each round
* core: optimize core (#428)Jimmy Hu2019-01-231-43/+94
| | | | | | | | | | | | | | * core: Use a channel to process ba confirmed block * change the implementation of done() to react faster * Fix restart * Wait tipRound to change * fix corner case * Check for context
* core: Fix stuffs (#422)Jimmy Hu2019-01-181-1/+1
| | | | | | * core: reduce syncing ba msg * core: fix checking period of agreement result
* core: Fix syncing BA issues (#421)Jimmy Hu2019-01-171-6/+13
|
* core: Fix BA3.0 (#420)Jimmy Hu2019-01-151-2/+14
| | | | | | | | | | | | | | | | | | * Add Restart to Ticker * Change pre allocated size * Return NextTime from lattice * Few hacky fixes for BA * PullVote in FastRollback state * Add shallowBlock for agreementResult * Extend period * Fixup
* core: fix issues in consensus core (#415)Jimmy Hu2019-01-101-4/+7
|
* core: report fork (#409)Mission Liao2019-01-081-1/+2
|
* core: BA 3.0 (#408)Jimmy Hu2019-01-071-6/+12
| | | | | | | | | | | | | | * Add v3 enum * Add BA leader calculation * Fast BA * Add unittest for Fast BA * Add comment * Select leader in notarySet
* core: agreement mgr safe spawn go routine (#396)wmin02019-01-041-4/+10
| | | | Set waitGroup.Add inner go routine is not safe. You can see the example here https://play.golang.org/p/AexsKUD-4WK
* core: fix stuffs (#383)Mission Liao2018-12-261-1/+1
| | | | | | * Merge core.Consensus constructors * Downgrade severity of logs * Refine logic to add blocks from pool to lattice * Add test.LaunchDummyReceiver
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-3/+3
|
* misc: panic not ready (#374)Mission Liao2018-12-181-2/+3
| | | | | | | | | | | | | | | | * Panic when config/crs not ready For those calls to Governace.Configuration and Governance.CRS without checking returns, replace those calls with these newly added helpers: - utils.GetConfigurationWithPanic - utils.GetCRSWithPanic They would check returns, and panic directly if not ready yet. * Fix a bug that config is not ready when syncing
* syncer: fix stuffs (#366)Mission Liao2018-12-121-7/+17
| | | | | | | | | | * return delivered blocks when processing finalized blocks * check deliver sequence when processing finalized blocks * skip delivery of finalized blocks * remove duplicated calls to BlockConfirmed * add numChains change in test scenario * fix the bug that restartNotary is triggered by older block than current aID.
* core: fix bugs found when node-set is not equal to notary-set (#362)Mission Liao2018-12-071-9/+18
|
* core: fix agreement sync issue. (#358)Jimmy Hu2018-12-051-2/+3
|
* core: Fix stuffs (#354)Jimmy Hu2018-12-041-2/+2
| | | | | | - Add common.CustomLogger - CRS will wait for DKG to finish - Fix core.agreementMgr.processAgreementResult
* core: construct consensus from syncer (#352)Mission Liao2018-12-041-17/+42
|
* core: Fix stuffs (#351)Jimmy Hu2018-11-301-1/+6
| | | | | | * Use non-blocking app in consensus core * Prevent panic when getting nextHeight
* core: Fix stuffs (#342)Jimmy Hu2018-11-271-10/+24
|
* core: support NumChains change for BA modules (#339)Mission Liao2018-11-201-0/+423