aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/state-change-request.go
Commit message (Collapse)AuthorAgeFilesLines
* misc: migrate to github.com/tangerine-networkHao2019-09-171-5/+5
|
* Update import pathWei-Ning Huang2019-06-231-5/+5
|
* core: Add DKGSuccess (#569)Jimmy Hu2019-04-151-0/+1
| | | | | | * core: Add DKGSuccess * core: reset if not enough of dkg success
* core: merge notarySet and DKGSet (#488)Jimmy Hu2019-03-271-5/+0
| | | | | | | | | | | | | | * core: さよăȘら DKGSet * test logger * temporary fix before finalized * core: Sign psig on commit vote * Add syncer log * fixup
* core: resetDKG interface (#461)Jimmy Hu2019-03-041-0/+1
| | | | | | | | | | * core: resetDKG skeleton * Add Equal test * Add TestLocal * Add TestPacking
* core: Change RoundInterval to RoundLength (#453)Jimmy Hu2019-02-261-4/+4
|
* core: switch round by block height (#450)Mission Liao2019-02-201-16/+0
|
* simulation: support config change (#381)Mission Liao2018-12-261-31/+55
|
* utils: move authenticator to utils package (#378)Mission Liao2018-12-221-4/+4
|
* core: Add a `MPKReady` so `MasterPublicKey` cannot be added afterwards (#375)Jimmy Hu2018-12-191-0/+6
| | | | | | | | | | | | | | | | * 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: fix bugs found when node-set is not equal to notary-set (#362)Mission Liao2018-12-071-2/+6
|
* test: allow to log in test.State (#359)Mission Liao2018-12-061-1/+57
|
* test: make StateChangeRequest broadcast-able (#305)Mission Liao2018-11-071-0/+135
Make `test.StateChangeRequest` behaves like tx on ethereum: - Can be broadcasted and cached in a pool. - Uniquely indexed, and be removed after applied. Changes: - Make cloneDKGx functions in test.State as utilities. - Add hash and timestamp fields to test.StateChangeRequest. - Add two methods to test.State: - PackOwnRequests would pack all pending change requests owned by this instance as byte slice, and move them to global pending requests pool. - AddRequestsFromOthers would add pending change requests from others to global pending requests pool. - The method State.PackRequests now would pack requests in global pending requests pool. - The method State.Apply would remove corresponding StateChangeRequest by hash.