aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus-timestamp.go
Commit message (Collapse)AuthorAgeFilesLines
* core: lattice: add round in NewLattice() (#303)haoping-ku2018-11-071-3/+4
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-6/+6
|
* core: fix consensus timestamp (#272)Mission Liao2018-10-291-2/+12
| | | | | | | | | | | * Fix panic Assume DAG would be increased to 7 chains at round 4. When encounter the first block from round 4, this module would attempt to resize its working set to the numChains in round 2 or 3. * Add a check to make sure consensus timestamps are increasing * Fix consensus timestamp rewind
* misc: Fix simulation error (#230)Jimmy Hu2018-10-191-1/+1
|
* core: consensus-timestamp: add sync (#219)Haoping Ku2018-10-181-24/+55
| | | | | | | | | | | | | | * core: consensus-timestamp: add sync * core: consensus-timestamp: add config change * fix go comment * add config change test * fixup: add error case handling * fixup: round interleave
* core: genesis consensus timestamp (#217)Mission Liao2018-10-171-15/+22
| | | | | | | | | | * Refine the initial value for empty time slot. * Fix DATA RACE netowrkConnection is reset for each test, however, our Consensus instance is not stopped after one test is finished, they might continue use network interface for a while.
* core: consensus-timestamp: modify for round change (#214)Haoping Ku2018-10-161-4/+12
| | | | | | * core: consensus-timestamp: modify for round change * core: consensus-timestamp: fix typos
* core: set genesis block finalization timestamp to zero time (#213)Wei-Ning Huang2018-10-161-0/+2
|
* core: latticeData supports config change (#190)Mission Liao2018-10-121-4/+2
| | | | | | | | | | | | | | | * Add test for num of chains changes. * Return error in latticeData.prepareBlock * Compare two positions * Modify chainStatus from height-based to index-based. * Fix consensus to use round variable * Remove sanity check in chainStatus * Fixup: refine sanity check - verify if round switching is required or not by chainTip's config. - make the logic in sanity check more clear - pospone acking relationship checking, they are more expensive to check.
* core: change interface (#193)Mission Liao2018-10-111-2/+2
| | | | | | | * Extract types.FinalizationResult * Change interface: - Application.BlockConfirmed returns whole block. - Application.BlockDelivered returns partial result.
* core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. ↵Jimmy Hu2018-10-041-1/+1
| | | | (#170)
* core: publish round based config (#165)Mission Liao2018-10-031-2/+21
|
* core: rename Notary (Acks) to Witness (#118)Wei-Ning Huang2018-09-191-1/+1
|
* core: timestamp (#98)Jimmy Hu2018-09-111-61/+17
|
* core: Remove notary ack. (#64)Jimmy Hu2018-08-161-4/+4
|
* core: Add Consensus to replace core.Blocklattice (#35)Mission Liao2018-08-081-48/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make Sequencer return slice of blocks. * Fix naming issue The function 'getHeightVecto' would return ackingStatusVector. * Fix comment error. * Add methods to collect info when proposing blocks. * Add test.App * Add test.Gov * Move this type to core.types to avoid cyclic import. * Add core.Consensus * Move getMedianTime, interpoTime to util These functions are not depending on members of core.consensusTimestamp and is required when testing core.Consensus. * Make sure types.Block.Clone would copy critical fields. * Remove core.blocklattice * Define 'infinity' in core/total-ordering This definition is defined in core/blocklattice originally. * Fix a bug when processing the same block twice. * Integrate simulation with core.Consensus core.Consensus is a replacement of core.Blocklattice * Fix the comment to use sigular form. * Move lock mechanism to sub modules. * phi should be 2*fmax+1 * Fixup: should aborting when the validator is added * Fix for new block fields * Fix the bug that the total ordering sequence is wrong.
* crypto: Add crypto module. (#34)Jimmy Hu2018-08-081-4/+6
|
* Rename names of struct and filesMission Liao2018-08-061-0/+151
Rename these files: - core/sequencer[_test].go -> core/total-ordering[_test].go - core/acking[_test].go -> core/reliable-broadcast[_test].go - core/timestamp[_test].go -> core/consensus-timestamp[_test].go Rename these structs: - core.sequencer -> core.totalOrdering - core.acking -> core.reliableBroadcast - core.timestamp -> core.consensusTimestamp