aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/node.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-7/+7
|
* core: do not panic in deliveryGuard but send a stop message insteadWei-Ning Huang2019-06-231-1/+1
|
* Update import pathWei-Ning Huang2019-06-231-7/+7
|
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-1/+0
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: refine DKG aborting (#512)Mission Liao2019-03-231-5/+5
| | | | | | | | | | | | | | | | | | * 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: remove initRoundBeginHeight paramenterMission Liao2019-03-221-1/+1
| | | | * Implement Governance.GetRoundHeight in test.Governance.
* core: first few round will not have DKG (#455)Jimmy Hu2019-03-041-1/+1
| | | | | | | | | | | | | | * 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
* core: Change RoundInterval to RoundLength (#453)Jimmy Hu2019-02-261-1/+1
|
* core: switch round by block height (#450)Mission Liao2019-02-201-5/+1
|
* core: remove Governance.NotifyRoundHeight (#431)Mission Liao2019-01-241-1/+1
|
* misc: Add gosec to check security issues (#424)Jimmy Hu2019-01-181-12/+17
| | | | | | | | * Add gosec to tools * Run security check to ci * Fix secrity issues
* simulation: fix k8s dmoment issue (#416)Jimmy Hu2019-01-091-1/+3
| | | | | | * Handshake with server dmoment * Start simulation from dMoment * Update k8s config
* simulation: add latency for gossip (#389)Mission Liao2019-01-031-11/+12
|
* simulation: support config change (#381)Mission Liao2018-12-261-43/+80
|
* core: simulation: add throughput and block event monitoring (#380)haoping-ku2018-12-221-1/+1
| | | | | | | | | | | * core: simulation: add throughput and block event monitoring Added throughput and block event monitoring in TCP-local network. These data is collected by nodes and reported to peer server. * fix issues * fix sent time of throughput issue
* db: rename blockdb to db (#367)Mission Liao2018-12-131-4/+4
| | | | | | | | | | * Rename blockdb package to db * Rename 'BlockDB' to 'DB' * Make all methods in db specific for ''block'. * Rename db.BlockDatabase to db.Database * Rename revealer to block-revealer * Rename test.Revealer to test.BlockRevealer
* test: allow to log in test.State (#359)Mission Liao2018-12-061-1/+6
|
* core: construct consensus from syncer (#352)Mission Liao2018-12-041-1/+1
|
* simulation: -log to dump log to file as well (#348)Jimmy Hu2018-11-291-5/+2
|
* core: sync logger with dex (#325)Mission Liao2018-11-141-1/+5
|
* simulation: Fix simulation failure (#324)Mission Liao2018-11-141-0/+2
|
* core: expose implicit round shift (#321)Mission Liao2018-11-131-1/+2
|
* simulation: use test.Governacne in simulation (#311)Mission Liao2018-11-081-32/+30
| | | | | | | | | | | | * Move simulation.Network to test package * Use test.Governance in simulation * Pack/Apply state request in blocks payload * Add Governance.SwitchToRemoteMode This would trigger governance to broadcast pending state change requests when changes. * Allow to marshal/unmarshal packedStateChanges * Attach test.Network and test.State
* core: Run DKG stuffs only if the node is in DKG set (#302)Jimmy Hu2018-11-061-1/+6
|
* test: move simulation.network to test package (#297)Mission Liao2018-11-051-10/+42
|
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-12/+12
|
* core: Move dkg in types to types/dkg. (#253)Jimmy Hu2018-10-251-3/+4
|
* core: initial commit for logger (#228)Mission Liao2018-10-191-1/+7
| | | | | | | | | | | | | * 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
* misc: Fix simulation error (#230)Jimmy Hu2018-10-191-1/+1
|
* core: Add init block to Run() (#221)Jimmy Hu2018-10-181-1/+1
|
* Remove duplicated dMoment in Consensus.Run (#206)Jimmy Hu2018-10-151-1/+1
|
* core: Fix simulation errors. (#202)Jimmy Hu2018-10-151-1/+1
|
* core: fix simulation error (#201)Jimmy Hu2018-10-151-2/+4
| | | | | * Sync dMoment for all consensus core * App check for randomness ignore round 0
* 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/+2
|
* core: remove legacy mode (#149)Mission Liao2018-09-281-8/+3
|
* core: hide types.NodeID from full node. (#147)Mission Liao2018-09-281-4/+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.
* crypto: sigtopub to crypto package. remove SigToPubFn (#141)Jimmy Hu2018-09-261-4/+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
* Rename validator* to node* (#120)Mission Liao2018-09-201-0/+138