aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-mgr.go
Commit message (Collapse)AuthorAgeFilesLines
* core: optimize handling for bad block (#574)Jimmy Hu2019-04-151-12/+23
| | | | | | * core: optimize handling for bad block * fix test
* core: add whether to report to VerifyPSig (#572)Jimmy Hu2019-04-151-0/+3
| | | | | | * core: add whether to report to VerifyPSig * fixup
* core: start next BA only when previous block delivered (#571)Jimmy Hu2019-04-151-5/+7
|
* core: fix false alarm (#564)Jimmy Hu2019-04-111-10/+37
| | | | | | | | | | | | * ignore test simple * core: update voteFilter to filter old er round * circleci: save logs * core: move check notarySet to agrmgr * fixup
* core: change CRSSignature with bls (#563)Jimmy Hu2019-04-111-2/+18
|
* core: filter vote if already processed (#552)Jimmy Hu2019-04-081-0/+1
| | | | | | * core: more aggresive vote filter * add test
* core: do nothing if not in notary set (#549)Jimmy Hu2019-04-041-0/+8
|
* core: prepare signer and npk (#545)Jimmy Hu2019-04-031-6/+22
|
* core: only qualified nodes can participant BA (#540)Jimmy Hu2019-04-021-30/+77
| | | | | | * core: only qualified nodes can participant BA * core: remove leader calculation from node set cache
* core: fix 'round not change' bug in receiver (#538)Jimmy Hu2019-04-021-28/+23
| | | | | | * core: remove round and round change height in recv * fixup
* core: Fix invalid block height when triggering init round event (#533)Mission Liao2019-03-291-8/+1
|
* core: fix issues (#525)Mission Liao2019-03-281-0/+5
| | | | | * Refine the logic to append config * Potential fix for round not increase when fast syncing
* core: fix issues (#522)Jimmy Hu2019-03-271-9/+12
| | | | | | | | * required vote calculation * fix agreement result * core: fix initRound issue of BA
* core: sign block hash for empty block (#517)Jimmy Hu2019-03-271-0/+1
| | | | | | * core: sign block hash for empty block * run force synced empty block at startup
* core: bring back agreement result (#515)Jimmy Hu2019-03-271-8/+16
| | | | | | | | | | * core: bring back agreement result * add logger * Fix * fixup
* core: Remove agreement result (#514)Jimmy Hu2019-03-271-0/+9
| | | | | | | | | | | | * 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-2/+2
| | | | | | | | | | | | | | * core: さよなら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: refine DKG aborting (#512)Mission Liao2019-03-231-3/+3
| | | | | | | | | | | | | | | | | | * 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
* test: try to mitigate flaky tests (#498)Mission Liao2019-03-181-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add assertion to make sure all nodes are synced. * Retry round event with BA's interval We are about to modify lambdaDKG with block height, instead of timing. Therefore, the last interval we could use is BA's interval. * Check ctx in inifite loop * Disable this panic temporary If a fast sync triggered by receiving types.AgreementResult from later position, this panic would be triggered 100%, ex. current-round: 1, change-notary-height: 120, agreeemnt-result from round:2 height:121 However, I don't have easy way to fix it temporary. * Lower down the test size for TCP * Fix typo * Fixup: revert the removed panic
* core, syncer: integrate utils.RoundEvent (#490)Mission Liao2019-03-161-31/+53
|
* utils: add RoundEvent (#482)Mission Liao2019-03-131-5/+5
| | | | | * Move core.roundBasedConfig to core/utils * Refine utils.RoundBasedConfig * Add utils.RoundEvent
* 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