aboutsummaryrefslogtreecommitdiffstats
path: root/core/reliable-broadcast.go
Commit message (Collapse)AuthorAgeFilesLines
* core: BA-based consensus core. (#93)Jimmy Hu2018-09-041-2/+20
|
* core: Add a new structure `Position` and move `ShardID`, `ChainID` and ↵Jimmy Hu2018-09-031-23/+30
| | | | `Height` from `Block` (#89)
* core: Change the lattice key from validatorID to chainID. (#83)Jimmy Hu2018-08-301-41/+59
| | | | | * Add chainID in simulation.Validator * Change validatorid to chainID in rbModule
* core: implicit fields in types.Block used in reliable broadcast (#59)Haoping Ku2018-08-171-41/+63
|
* core: add nack module (#41)Haoping Ku2018-08-131-8/+22
|
* core: reliable-broadcast: delete old blocks (#47)Haoping Ku2018-08-101-3/+12
| | | | Delete all blocks in received blocks array for avoiding using too much memory space.
* Fix the bug preventing us from testing large group when using TCP-Local (#42)Mission Liao2018-08-101-7/+0
| | | | | | | | | | | | | | | | | | | | * Fix the issue that processing genesis block twice. - Restore the mechanism to avoid sending block to proposer. * Fix the 'keep-alive' not working Quote from comments of net/http/request For client requests, setting this field prevents re-use of TCP connections between requests to the same hosts, as if Transport.DisableKeepAlives were set. * Remove useless field * Fix the test bug: I should provide '3' when test K=3 * Fixup: the parent hash of genesis block should be zero
* core: Add Block.IsGenesis() and set Block.ParentHash to 0 in genesis block. ↵Jimmy Hu2018-08-091-7/+6
| | | | (#37)
* core: Add Consensus to replace core.Blocklattice (#35)Mission Liao2018-08-081-3/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Rename names of struct and filesMission Liao2018-08-061-0/+309
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