aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
Commit message (Collapse)AuthorAgeFilesLines
* crypto: sigtopub to crypto package. remove SigToPubFn (#141)Jimmy Hu2018-09-261-2/+1
|
* core: move crypto to core/crypto (#140)Mission Liao2018-09-261-1/+1
| | | | | | | | | - Move key-holder to authenticator Make core.keyHolder public as core.Authenticator, it is not required to make this part an interface. - Make private when there is no need to go public. - Fix data race
* core: run TSIG for first configuration block at startup (#135)Jimmy Hu2018-09-261-0/+6
|
* core: update governance interface to consider genesis state (#136)Wei-Ning Huang2018-09-251-3/+3
|
* core: add debug (#133)Mission Liao2018-09-251-31/+17
| | | | | | | | | | | | | | | | | | | | | * Split interface * Rename nonblocking-application to nonblocking Parts needs nonblocking gets more. * Implement core.nonBlocking based on interface split * Fix: the witness parent hash could be parent on compaction chain. * Rename Application.DeliverBlock to BlockDeliver To sync with naming of other methods. * Change methods' fingerprint - BlockConfirmed provides block hash only. - BlockDeliver provde a whole block.
* core: run first DKG at startup. (#129)Jimmy Hu2018-09-231-0/+5
|
* core: add shard (#127)Mission Liao2018-09-211-18/+18
| | | | | | | A shard is basically DEXON v1 components, except the strongly acked part, including: - maintaining lattice structure - total ordering - generate consensus timestamp
* Rename validator* to node* (#120)Mission Liao2018-09-201-55/+55
|
* core: rename Notary (Acks) to Witness (#118)Wei-Ning Huang2018-09-191-2/+2
|
* core: refine governance interface to reduce Get* methods (#114)Wei-Ning Huang2018-09-181-5/+5
| | | | | Since we have a bunch of static configurations in the governance contract, instead of using a Get* method for each of them, we instead implement a GetConfiguration() method to return a structure of the configurations.
* core: remove ticker parameter from NewConsensusMission Liao2018-09-181-5/+4
| | | | | | | | | - remove BlockProposingInterval, it's replaced by lambda. - remove ticker parameter of NewConsensus, ticker would be derived from governance. - leave a backdoor to hook the construction of ticker. - move 'Lambda' config from to consensus.
* core: move blockdb into core package and minor change on governance ↵Wei-Ning Huang2018-09-171-1/+1
| | | | | | | interface (#110) Since third party apps will possibly implement their only blockdb class, it make sense for the interface to be in core. Also add GetNumShards into the governance interface.
* core: DKG interface (#108)Jimmy Hu2018-09-171-0/+5
|
* core: timestamp (#98)Jimmy Hu2018-09-111-3/+8
|
* core: Add a new structure `Position` and move `ShardID`, `ChainID` and ↵Jimmy Hu2018-09-031-17/+35
| | | | `Height` from `Block` (#89)
* Use Network in Consensus core (#85)Jimmy Hu2018-08-311-1/+22
|
* core: Change the lattice key from validatorID to chainID. (#83)Jimmy Hu2018-08-301-8/+18
| | | | | * Add chainID in simulation.Validator * Change validatorid to chainID in rbModule
* simulation: add simulation with scheduler (#71)Mission Liao2018-08-211-1/+1
| | | | | | | | - Add new field in test.Event: HistoryIndex HistoryIndex allow us to access them by their position in event history. - Record local time in test.App when receiving events. - Add statisitics module for slices of test.Event. - add new command line utility *dexcon-simulation-with-scheduler to verify the execution time of core.Consensus.
* core: Add a nonBlockingApplication. (#62)Jimmy Hu2018-08-151-7/+14
|
* core: Prepare Genesis block. (#54)Jimmy Hu2018-08-141-40/+62
|
* core: Sign block in Consensus.PrepareBlock. (#50)Jimmy Hu2018-08-131-1/+4
|
* core: Hash block in Consensus.PrepareBlock. (#46)Jimmy Hu2018-08-121-5/+11
| | | | | | | | * Add hash to block * Check block hash in Consensus.sanityCheck * Add hashBlockFn in block generator.go
* core: Modify Consensus interface (#45)Jimmy Hu2018-08-101-10/+10
|
* core: update governance interface and move K into config (#40)Wei-Ning Huang2018-08-101-3/+3
|
* core: Add Block.IsGenesis() and set Block.ParentHash to 0 in genesis block. ↵Jimmy Hu2018-08-091-1/+1
| | | | (#37)
* core: Add Consensus to replace core.Blocklattice (#35)Mission Liao2018-08-081-0/+305
* 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.