aboutsummaryrefslogtreecommitdiffstats
path: root/core/compaction-chain_test.go
Commit message (Collapse)AuthorAgeFilesLines
* big-bang: single chain (#446)Mission Liao2019-02-191-343/+0
|
* core: pull block random (#384)Jimmy Hu2018-12-261-0/+8
| | | | | | | | * Add PullRandomness to interface * Add pendingBlocksWithoutRandomness to compactionChain * Pull randomness every 1 second
* test: allow to log in test.State (#359)Mission Liao2018-12-061-2/+2
|
* core: log the last pending block in compaction chain (#355)Mission Liao2018-12-041-1/+1
|
* core: remove finalized from compaction-chain module (#350)Mission Liao2018-11-301-203/+30
| | | | | | | | | | | | * Remove extractFinalizedBlock * Fix/Remove tests related to extractFinalizedBlocks * Remove unused function * Provide randomness result from finalized blocks, nothing more. * Make init block matched with pendingBlocks[0]
* core: Block randomness will be processed again in finalized block (#338)Jimmy Hu2018-11-201-40/+108
| | | | | | * Process randomness result in finalized block if missed * Add test for missing block randomness
* core: expose implicit round shift (#321)Mission Liao2018-11-131-1/+2
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-9/+9
|
* core: handle round 0 randomness in processFinalizedBlock (#256)Jimmy Hu2018-10-251-0/+6
|
* core: fix stuffs (#250)Mission Liao2018-10-241-0/+14
| | | | | | | | * fix discontinuous finalization height * remove types.Block.Witness.Timestamp field * add field: types.Block.Finalization.ParentHash * fix log format of CRS * switch round and chain in log of types.Position.
* test: add test.State (#239)Mission Liao2018-10-241-1/+3
| | | | | | | | | * separate test utility and interface implementation for test.Governance. * add test.State. * integrate test.State to test.Governance. test.State is mainly used to emulate state propagation on fullnode.
* core: Sync from BA and test. (#224)Jimmy Hu2018-10-191-17/+124
|
* core: sync compaction chain (#222)Jimmy Hu2018-10-181-0/+107
|
* core: Add init block to Run() (#221)Jimmy Hu2018-10-181-7/+5
|
* core: Some sync functions (#220)Jimmy Hu2018-10-171-1/+4
|
* Finalization Height starts from 1 (#215)Jimmy Hu2018-10-161-0/+5
|
* core: No randomness for round 0 (#198)Jimmy Hu2018-10-151-0/+37
| | | | | * No randomness for round 0 * Ignore round 0 randomness
* core: change interface (#193)Mission Liao2018-10-111-4/+8
| | | | | | | * Extract types.FinalizationResult * Change interface: - Application.BlockConfirmed returns whole block. - Application.BlockDelivered returns partial result.
* core: Add block randomness in compaction-chain module (#179)Jimmy Hu2018-10-081-8/+79
|
* core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. ↵Jimmy Hu2018-10-041-8/+4
| | | | (#170)
* core: update data model to reflect new model (#157)Wei-Ning Huang2018-10-011-65/+0
| | | | | | Update data model: 1) Remove witness ack. 2) Add round to block. 3) Update governance interface.
* core: integrate authenticator (#150)Mission Liao2018-09-301-21/+4
|
* core: rename crypto/eth to crypto/ecdsa (#144)Wei-Ning Huang2018-09-261-4/+4
|
* crypto: sigtopub to crypto package. remove SigToPubFn (#141)Jimmy Hu2018-09-261-1/+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: refactor witness data processing flow (#124)Wei-Ning Huang2018-09-201-14/+14
| | | | | | | | | | | Since witness data need to include data from application after it processed a block (e.g. stateRoot). We should make the process of witness data asynchronous. An interface `BlockProcessedChan()` is added to the application interface to return a channel for notifying the consensus core when a block is processed. The notification object includes a byte slice (witenss data) which will be include in the final witness data object.
* Rename validator* to node* (#120)Mission Liao2018-09-201-6/+6
|
* core: rename Notary (Acks) to Witness (#118)Wei-Ning Huang2018-09-191-37/+37
|
* 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: Notary ack (#69)Jimmy Hu2018-08-211-55/+132
|
* core: Remove notary ack. (#64)Jimmy Hu2018-08-161-47/+53
|
* core: Add compaction chain module. (#60)Jimmy Hu2018-08-161-0/+88