aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils
Commit message (Collapse)AuthorAgeFilesLines
* 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