aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-state_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-1/+4
| | | | | | * 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-1/+1
|
* core: only qualified nodes can participant BA (#540)Jimmy Hu2019-04-021-1/+5
| | | | | | * core: only qualified nodes can participant BA * core: remove leader calculation from node set cache
* core: clean TODOs (#539)Mission Liao2019-04-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-37/+16
| | | | | | | | | | * core: fastPreCom should not propose fastCom in RBA * add test for fix * core: update BA * core: fix 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: 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-14/+2
| | | | | | | | | | | | | | | | * 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: report fork (#409)Mission Liao2019-01-081-1/+6
|
* core: BA 3.0 (#408)Jimmy Hu2019-01-071-1/+64
| | | | | | | | | | | | | | * 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-8/+9
|
* core: Extract VoteHeader (#313)Mission Liao2018-11-091-5/+1
|
* core: Optimize core (#307)Jimmy Hu2018-11-081-3/+3
|
* 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-35/+25
|
* core: Add a repeat vote state. (#280)Jimmy Hu2018-10-311-4/+26
|
* core: Pull block (#263)Jimmy Hu2018-10-261-0/+2
|
* core: Leader selector will retry sanityCheck (#261)Jimmy Hu2018-10-261-1/+3
|
* core: New dexon ba (#210)Jimmy Hu2018-10-161-243/+52
|
* 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-17/+14
|
* core: remove legacy mode (#149)Mission Liao2018-09-281-9/+9
|
* core: hide types.NodeID from full node. (#147)Mission Liao2018-09-281-9/+10
| | | | | | | | | * 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-5/+5
|
* 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-38/+38
|
* core: Fix BA Fork issues (#104)Jimmy Hu2018-09-131-16/+1
|
* misc: Polish BA. (#94)Jimmy Hu2018-09-051-3/+3
|
* core: BA-based consensus core. (#93)Jimmy Hu2018-09-041-18/+18
|
* core: Leader Selector. (#80)Jimmy Hu2018-08-301-12/+24
|
* core: Remove channel in agreement (#79)Jimmy Hu2018-08-291-130/+76
|
* core: Add agreement module (#77)Jimmy Hu2018-08-291-0/+493