aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils
Commit message (Collapse)AuthorAgeFilesLines
* core/utils: fix verifyDKGComplaint bug (#472)Jimmy Hu2019-03-082-3/+3
| | | | | | * core/utils: fix verifydkgcomplaint bug * fix test
* core: touch nodeSetCache (#466)Jimmy Hu2019-03-072-0/+26
|
* core: first few round will not have DKG (#455)Jimmy Hu2019-03-042-5/+14
| | | | | | | | | | | | | | * 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: Change RoundInterval to RoundLength (#453)Jimmy Hu2019-02-262-2/+2
|
* core: remove acks (#451)Mission Liao2019-02-222-15/+0
|
* core: switch round by block height (#450)Mission Liao2019-02-204-34/+14
|
* big-bang: single chain (#446)Mission Liao2019-02-192-33/+24
|
* core: Add vote filter (#430)Jimmy Hu2019-01-242-0/+153
| | | | | | | | | | | | * core: ignore usless vote * core: export SkipBlockHash and NullBlockHash * core: add VoteFilter * Add test * New VoteFilter for each round
* core: Fix BA3.0 (#420)Jimmy Hu2019-01-152-6/+7
| | | | | | | | | | | | | | | | | | * 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
* syncer: fix issues when switching to core.Consensus (#418)Mission Liao2019-01-112-0/+94
| | | | | | | | | | | | | | | | - 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.
* core: BA 3.0 (#408)Jimmy Hu2019-01-072-3/+50
| | | | | | | | | | | | | | * Add v3 enum * Add BA leader calculation * Fast BA * Add unittest for Fast BA * Add comment * Select leader in notarySet
* test: allow empty change request (#398)Jimmy Hu2019-01-041-16/+0
| | | | | | * allow empty reqs * Fix license
* core: expose HashVote function for test (#400)Wei-Ning Huang2019-01-044-8/+9
|
* core/utils: Add Penalty checker and VerifyDKGComplaint (#393)Jimmy Hu2019-01-044-0/+513
| | | | | | | | | | * Add Util for checking penalty * Add VerifyDKGComplaints * Fixup and rename * Happy New Year!
* utils: move authenticator to utils package (#378)Mission Liao2018-12-224-0/+815
|
* misc: panic not ready (#374)Mission Liao2018-12-181-0/+61
| | | | | | | | | | | | | | | | * 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
* core: fix bugs found when node-set is not equal to notary-set (#362)Mission Liao2018-12-071-6/+13
|
* utils: add utils package (#327)Mission Liao2018-11-142-0/+351