aboutsummaryrefslogtreecommitdiffstats
path: root/core/configuration-chain_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: Add DKGSuccess (#569)Jimmy Hu2019-04-151-0/+13
| | | | | | * core: Add DKGSuccess * core: reset if not enough of dkg success
* core: run TSig forever when ForceSync (#554)Jimmy Hu2019-04-081-4/+4
|
* core: run dkg by height (#527)Jimmy Hu2019-03-291-16/+84
| | | | | | | | * core: run dkg by height * core: check cc.dkgCtx before running each dkg phases * fix
* core: reset DKG if to less qualified nodes (#528)Jimmy Hu2019-03-291-3/+3
|
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-3/+14
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: fix required vote calculations (#513)Jimmy Hu2019-03-241-0/+3
|
* core: refine DKG aborting (#512)Mission Liao2019-03-231-1/+36
| | | | | | | | | | | | | | | | | | * Avoid aborting the DKG protocol registered later Although that DKG protocol would be registered after 1/2 round, both of them are triggered in separated go routine and we shouldn't assuem their execution order. * Capitalize logs * Add test * Return aborted when not running * Log DKG aborting result * Remove duplicated DKG abort
* core: abort hang DKG (#508)Mission Liao2019-03-221-7/+13
| | | | | | | | | | | | | | | | | | | | | | | * Capitalize log * Fix DKG aborting hangs Make sure reset cc.dkg to nil in runDKG * Remember to purge tsig verfier too * Replace abortCh with context.Context * Fix obvious bug * Fixup: forever blockin at Wait method when runDKG is not called * Fixup: fix corner case If the Add(1) moved to runDKG under cc.dkgLock, we may not catch it after unlocking cc.dkgLock. * fixup
* core: remove round from addDKG fuction (#501)Jimmy Hu2019-03-191-4/+4
|
* core: abort hang dkg (#500)Mission Liao2019-03-191-0/+44
|
* core: snapshot DKG protocol struct when finish any phase (#496)bojie2019-03-181-0/+13
|
* dkg: add reset field (#492)Mission Liao2019-03-171-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | * Add Reset fields to DKG types * Fix crypto part after adding Reset field * Prohibit DKG messages with different resetCount * Add TODO * Add reset parameter to dkgProtocol constructor * Add TODO * Fix inconsist hash to prepare CRS * Add reset parameter when runnning DKG * Fix test for utils.RoundEvent * Add dummy test to prohibit DKG messages with unexpected reset count * Fix test.App
* core: split GroupPublicKey and NodePublicKeys (#484)Jimmy Hu2019-03-121-14/+14
| | | | | | | | * core: add benchmark * core: split NPKs and GPK * Add benchmark
* core: move some dkg utils (#476)Mission Liao2019-03-111-9/+9
| | | | | | * Move core.getDKGThreshold to core.utils.GetDKGThreshold * Move core.DKGGroupPublicKey to typesDKG.GroupPublicKey
* core: first few round will not have DKG (#455)Jimmy Hu2019-03-041-9/+9
| | | | | | | | | | | | | | * core: Add DKGDelayRound constant * core: use constant value * core, utils: set DKGDelayRound for utils. * test: add dkgDelayRound to state * core: do not run dkg and crs for round < DKGDelayRound * fix test
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-149/+101
|
* core: Add a `MPKReady` so `MasterPublicKey` cannot be added afterwards (#375)Jimmy Hu2018-12-191-0/+95
| | | | | | | | | | | | | | | | * Add type DKGReady * Add DKGReady to interface and state * DKG will wait for MPK to be ready before running * Modify test * Check if self's MPK is registered * Add test for delay add MPK * Rename Ready to MPKReady
* core: cache dkg's private key in db (#371)Mission Liao2018-12-161-2/+33
|
* core: Fix a bug of DKGNackComplaints (#370)Jimmy Hu2018-12-141-0/+79
| | | | | | * core: Fix a bug if DKGNackComplaint is added after required time. * Duplicated NackComplaint should be only count once.
* ci: Add TravisCI setting. (#363)Jimmy Hu2018-12-081-22/+74
| | | | | | | | | | | | | | * Update Gopkg.lock * Fix test * Add travisCI setting * Print log using fmt * Update GNUmakefile * Use single go rountine for consensus_test
* test: allow to log in test.State (#359)Mission Liao2018-12-061-1/+2
|
* core: Add timeout to TSig (#330)Jimmy Hu2018-11-151-0/+37
|
* utils: add utils package (#327)Mission Liao2018-11-141-1/+2
|
* core: expose implicit round shift (#321)Mission Liao2018-11-131-1/+1
|
* core: Run DKG stuffs only if the node is in DKG set (#302)Jimmy Hu2018-11-061-2/+2
|
* core: Fix dkg and CRS signature (#294)Jimmy Hu2018-11-051-4/+10
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-12/+12
|
* core: Move dkg in types to types/dkg. (#253)Jimmy Hu2018-10-251-11/+12
|
* test: add test.State (#239)Mission Liao2018-10-241-1/+1
| | | | | | | | | * 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: initial commit for logger (#228)Mission Liao2018-10-191-1/+2
| | | | | | | | | | | | | * Replace "log.*" with logger. * Add simple logger to log with log package. * Add debug logs to all calls to these interfaces: - core.Application - core.Governance - core.Network * Add Stringer to these types: - types.DKGComplaint - types.AgreementResult - types.DKGMasterPublicKey - types.DKGFinalize
* core: Add round to DKG methods in gov. Change network interface name (#185)Jimmy Hu2018-10-091-3/+3
|
* core: Add DKG final message. (#181)Jimmy Hu2018-10-091-0/+16
|
* core: General tsig (#177)Jimmy Hu2018-10-051-13/+89
|
* core: run DKG and CRS at background. (#155)Jimmy Hu2018-10-021-2/+2
|
* test: Non-qualified node are accepted in test. (#154)Jimmy Hu2018-10-011-7/+20
|
* core: Allow more time for DKG to finish on CircleCI machine. (#152)Jimmy Hu2018-09-291-1/+1
|
* core: rename crypto/eth to crypto/ecdsa (#144)Wei-Ning Huang2018-09-261-2/+2
|
* Fix racing (#142)Jimmy Hu2018-09-261-3/+6
|
* 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-4/+9
| | | | | | | | | - 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: configuration chain test (#137)Jimmy Hu2018-09-261-0/+213