aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement_test.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-4/+4
|
* Update import pathWei-Ning Huang2019-06-231-4/+4
|
* core: optimize handling for bad block (#574)Jimmy Hu2019-04-151-10/+12
| | | | | | * core: optimize handling for bad block * fix test
* core: add whether to report to VerifyPSig (#572)Jimmy Hu2019-04-151-2/+2
| | | | | | * core: add whether to report to VerifyPSig * fixup
* core: change CRSSignature with bls (#563)Jimmy Hu2019-04-111-45/+27
|
* core: only qualified nodes can participant BA (#540)Jimmy Hu2019-04-021-1/+3
| | | | | | * core: only qualified nodes can participant BA * core: remove leader calculation from node set cache
* core: clean TODOs (#539)Mission Liao2019-04-011-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core: fix block timestamp (#529) * Remove TODO dMoment is still required when the block timestamp of the genesis block is still need to be verified. * Refine timestamp when preparing blocks * Add timestamp checking in sanity check * Revert code to patch position when preparing * Remove TODOs that seems meaningless now * Remove TODOs related to refactoring * core: remove finalization (#531) - Remove types.FinalizationResult, randomness field would be moved to `types.Block` directly. - Add a placeholder for types.Block.Randomness field for blocks proposed from round < DKGDelayRound. (refer to core.NoRand) - Make the height of the genesis block starts from 1. (refer to types.GenesisHeight) - The fullnode's behavior of core.Governance.GetRoundHeight is (assume round-length is 100): - round: 0 -> 0 (we need to workaround this) - round: 1 -> 101 - round: 2 -> 201 - test.Governance already simulate this behavior, and the workaround is wrapped at utils.GetRoundHeight. * core: fix issues (#536) fixing code in these condition: - assigning position without initializing them and expected it's for genesis - compare height with 0
* core: Update BA to the latest version (#519)Jimmy Hu2019-03-271-9/+21
| | | | | | | | | | * core: fastPreCom should not propose fastCom in RBA * add test for fix * core: update BA * core: fix test
* core: Remove agreement result (#514)Jimmy Hu2019-03-271-0/+18
| | | | | | | | | | | | * core: remove agreement result for round with randomness * remove agr test in syncer * fixup * remove randomness field from agreement result * modify test
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-0/+4
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: fast forward should close previous done() channel (#444)Jimmy Hu2019-02-131-0/+12
| | | | | | * core: fast forward faster * core: modify unit test
* core: BA3.1 (#437)Jimmy Hu2019-01-281-2/+2
| | | | | | * core: BA 3.1 * core: fix test
* core: Add vote filter (#430)Jimmy Hu2019-01-241-4/+4
| | | | | | | | | | | | * core: ignore usless vote * core: export SkipBlockHash and NullBlockHash * core: add VoteFilter * Add test * New VoteFilter for each round
* core: Fix BA3.0 implmenetation (#426)Jimmy Hu2019-01-211-11/+28
| | | | | | | | | | | | | | | | * types: Add vote type * core: remove stateFastRollback * core: rename lockRound to lockIter * core: Implement real ba3.0 * core: Add test for confirm * Fix VoteFastCom in agreement result * lockIter will always increase
* core: find confirmed block in pending set and candidate set (#419)Mission Liao2019-01-161-15/+49
|
* core: report fork (#409)Mission Liao2019-01-081-10/+57
|
* core: BA 3.0 (#408)Jimmy Hu2019-01-071-14/+95
| | | | | | | | | | | | | | * Add v3 enum * Add BA leader calculation * Fast BA * Add unittest for Fast BA * Add comment * Select leader in notarySet
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-11/+12
|
* core: Extract VoteHeader (#313)Mission Liao2018-11-091-5/+1
|
* core: Optimize core (#307)Jimmy Hu2018-11-081-3/+3
|
* core: New BA (#295)Jimmy Hu2018-11-051-2/+2
|
* core: reset CRS in leader selector by round (#286)Mission Liao2018-11-021-3/+2
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-8/+8
|
* core: Add PullVotes to Network. (#281)Jimmy Hu2018-10-311-9/+4
|
* core: Add a repeat vote state. (#280)Jimmy Hu2018-10-311-0/+43
|
* core: Pull block (#263)Jimmy Hu2018-10-261-9/+26
|
* core: Leader selector will retry sanityCheck (#261)Jimmy Hu2018-10-261-1/+3
|
* core: New dexon ba (#210)Jimmy Hu2018-10-161-9/+170
|
* core: Fix corner cases (#211)Jimmy Hu2018-10-161-0/+1
| | | | | | * leader selector will choose smaller hash if distance to crs is the same * Set initial value of aID in BA before start
* core: Block randomness generation. (#178)Jimmy Hu2018-10-081-1/+2
|
* core: run DKG and CRS at background. (#155)Jimmy Hu2018-10-021-1/+1
|
* core: integrate authenticator (#150)Mission Liao2018-09-301-19/+10
|
* core: remove legacy mode (#149)Mission Liao2018-09-281-9/+9
|
* core: hide types.NodeID from full node. (#147)Mission Liao2018-09-281-5/+6
| | | | | | | | | * Refine core.Governance interface - Remove types.NodeID from interface declaration. - All parameter should be round based. * Add core.NodeSetCache * Agreement accepts map of nodeID directly. * test.Transport.Peers method return public keys.
* core: rename crypto/eth to crypto/ecdsa (#144)Wei-Ning Huang2018-09-261-3/+3
|
* 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-2/+2
| | | | | | | | | - 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: update governance interface to consider genesis state (#136)Wei-Ning Huang2018-09-251-1/+1
|
* Rename validator* to node* (#120)Mission Liao2018-09-201-16/+16
|
* misc: Polish BA. (#94)Jimmy Hu2018-09-051-3/+3
|
* core: BA-based consensus core. (#93)Jimmy Hu2018-09-041-0/+162