Raul Jordan
dfaf005229
sharding: address linter errors
...
Former-commit-id: 70fee9bf5816e9520fb927b84ab8b93d83014869 [formerly 523192e37e40878079d7981bd28ed25f618ab0a6]
Former-commit-id: 604f33826c63ff42dd90d75bb517ed09f5d52b6a
2018-05-16 17:06:35 -04:00
Terence Tsao
89dedc3184
sharding/contract: merge with master
...
Former-commit-id: 9f271cd21ed6c7c5b3b04a9db7118d2a75f61d34 [formerly 2dc1d365b337c98aa543b6d6e8b54bf0b92d48c1]
Former-commit-id: ebaf4132fbbd00b027dacd4b9e38f2f765274b70
2018-05-15 11:22:38 -07:00
Terence Tsao
56e90be294
sharding/contract: add balance to notary struct
...
Former-commit-id: 81d73e4fe4675b370160bd7b391dfe6fed17aaab [formerly 734e43220a976da1a88e4d19b2ec42f77020e351]
Former-commit-id: a78e3fd7b345e8f032adc03aa567250b99c2aa1e
2018-05-15 09:05:01 -07:00
Terence Tsao
248f245f9f
sharding/contracts: added regression test
...
Former-commit-id: 01dbc764a0a616d1ed4c21232d5fc886052c3c74 [formerly 5509cecf26e39948254f55d2d2cca820d3ed5b1b]
Former-commit-id: 3830de45de328b24d3d2c81559fac3a1e9d0a76a
2018-05-13 11:28:23 -07:00
Terence Tsao
c545df41be
sharding/contracts: fixed getNotaryInCommittee not fetching latest notary sample size
...
Former-commit-id: 0591d5c65d5e8b165f9ca442391e5af0644b3e4d [formerly ae1d540ca879d6a72032462b880892c7dcdec179]
Former-commit-id: bd310578fb6afafab3f9485e70be1dacdfcf3f1b
2018-05-13 10:13:25 -07:00
Terence Tsao
0d73429252
sharding: reuse notaryCount
...
Former-commit-id: 46d9a0084896bd36375b756d1a778da28b838283 [formerly f97fdf445e13b5bc1d8efff79d7c42d76df360f6]
Former-commit-id: 4e627a869e3cea4894f4a5520280fae4d11ab3e9
2018-05-09 20:30:13 -07:00
Terence Tsao
a083a59f34
sharding: punctuated all comments
...
Former-commit-id: 024ae32926514787aa79b9adabb75bac8093cca2 [formerly ec5e6212b34ddff25f564f4cadd8a4ffae027a22]
Former-commit-id: 215ec3ed3cddd2c624cb5a7068b004e334ea83c2
2018-05-09 19:15:29 -07:00
Terence Tsao
37889c476a
sharding: fixed lint
...
Former-commit-id: 413ad02b5004698771b67dfea296f1252b29c2e3 [formerly 978dcf9bbac9aabfb1decf48e5dd9af1c5b13ade]
Former-commit-id: 99c1b8b1a8dc308ebd834f18f04ea88861d8d17f
2018-05-09 12:02:45 -07:00
Terence Tsao
8b5cafd7a6
sharding: merge with master
...
Former-commit-id: eafe01eb22f8e478dacb6b07a17feeae4a7e0697 [formerly 2fe0af9b331c81eff468cb3adda6784af74d2a0f]
Former-commit-id: 93720d0e2f005bf1edfb141ffbf3e735fcbca7df
2018-05-09 11:56:59 -07:00
Terence Tsao
ff71722488
sharding: tests for submitVote
...
Former-commit-id: 1366e3a2ce8443fcca97b3a3dca97d2ae2173a1c [formerly f90336cfa8a389a4e2e7a64d5051fa809fe6b415]
Former-commit-id: 5da8b6d82156acf78618f15b45e8b0e0323c962a
2018-05-09 11:53:55 -07:00
Terence Tsao
9dbf1936b4
sharding: added submitVote test
...
Former-commit-id: 969f64168aea10d5b812919bf5a3d4f534a90922 [formerly 03a49e09f1ffbfe52858d89ddcbbac34f848ba19]
Former-commit-id: f1f57db412f0ae9bc22c31a5aabd5f4e4df3491c
2018-05-08 17:55:50 -07:00
Terence Tsao
6fb4d23c5d
sharding: addressed SMC review feedback, refactored bitwise ops to be more readable
...
Former-commit-id: 55f263bd66cc76f14aba0862670a7189cc53153f [formerly bbef8789c0cb4155185f09de12388dd05f60d3c7]
Former-commit-id: 365d81184578e1d6bf55ec24d01d3c1b91348173
2018-05-08 14:55:18 -07:00
Raul Jordan
b6ec6d8b23
sharding: update comments across packages for punctuation
...
Former-commit-id: ab617ef43f369476a4ca863e9ab6f732cec9ed7e [formerly 221795c5c6f43cf0550cdf9ba37345e09e91f47d]
Former-commit-id: 6462269b88180c6f09dc3c633e4104c3cf8efb4d
2018-05-02 20:16:07 -05:00
Terence Tsao
c163c9618b
sharding: finished add_header test cases, fixed linting
...
Former-commit-id: 3e1166190c9d244b3a11be98c762a964a828ded2 [formerly 813229ff3719a04e606f7999f61135c944b67b3c]
Former-commit-id: b91db465aa3e9bd221aae5bb17165bbe45a9be9d
2018-05-02 13:00:12 -07:00
Terence Tsao
6dd7261bd1
sharding: test for adding header at the wrong period
...
Former-commit-id: af8d4bebd7d9d9478d543482a43f450444893b50 [formerly 4913424a3a91032b3fee76ccd805c3b6a8926271]
Former-commit-id: a48c6f7a508549f89ec66a9bc8ba72ecac03e784
2018-05-02 12:29:08 -07:00
Terence Tsao
ea13800459
sharding: test for adding multiple headers within same period
...
Former-commit-id: fc458cbf2960c15c0fa689b22b03614578ab8be3 [formerly 715efa2aeaf765dcab6fc87e1c3da729f2447f8a]
Former-commit-id: 420db139f99b7cb667ea3d5113d36037a88e0904
2018-05-02 11:50:31 -07:00
Terence Tsao
48a6306127
sharding: test for add_header with normal usage
...
Former-commit-id: 63f6cf891ff13d1ea88126793ad73e0ef458ef6c [formerly 16966f2d6e2054b432852e46758c12a06108e6e3]
Former-commit-id: 7d6ff2b31b31f59c171552043b6bb181dec0eaa7
2018-05-01 21:33:40 -07:00
Terence Tsao
3b7c5bf64c
sharding: notary casts votes
...
Former-commit-id: 8c0007eaf2de0d36c69ea346f85234dee6af89ee [formerly c9ed2d6063398edf0734a6d48a6cc88b6afd637b]
Former-commit-id: f508bacaab3632fa4d3d05c26eea3c6b155c2ab1
2018-04-30 17:31:44 -07:00
Terence Tsao
668bbc7478
sharding: check bit in bytes for notary votes
...
Former-commit-id: 4c38295fbf89008dda9c43ee6a60472e15726064 [formerly b6594988cb3353751f09ac69863813ca106467df]
Former-commit-id: d2196e99231a1cb0f43d0f5380bb2fdc645a8949
2018-04-29 16:31:30 -07:00
Terence Tsao
3bc4acd4e3
sharding: finished addHeader, started submitVote
...
Former-commit-id: ed38e8621204fa276328cfe8dfbf989294a28519 [formerly 10bbd9cc3990c0922e73eeba138bab7d016e9fde]
Former-commit-id: 8d0d2407ab547a8f5e2022d85361dd74d3328da9
2018-04-28 14:55:27 -07:00
Terence Tsao
8bed2909f1
sharding: initial commit for add header in SMC
...
Former-commit-id: 71e0b082ddca84797d04ffd07a2904eef013a7fc [formerly c9e0bf0453a0c60b3f327731bd58ef62a7cd5915]
Former-commit-id: f07a9c7590d715abc41f0c2fdb64c46e553af0b4
2018-04-28 10:11:42 -07:00
Terence Tsao
84389b219b
sharding: fixed return bool for functions in sol
...
Former-commit-id: 33624e189e073aa862f2e33f8fd5ebea919d6368 [formerly c7c40d11c99abd923eeee641866e73ea26d7ca13]
Former-commit-id: 7d307bc09f0f46d31be20560879954eb8b2a9215
2018-04-27 16:38:24 -07:00
Terence Tsao
150f0ae58d
sharding: latest round of feedback
...
Former-commit-id: e37429c965bb98a0155f85351f76e0db2d0e2a07 [formerly 1d3ad1e172e1d0a80c66a2bd44a8fac7414d439a]
Former-commit-id: addf37b75b2c9952da0274bbb57df27b096455fb
2018-04-24 21:55:32 -07:00
Terence Tsao
4e45d1882c
sharding: fixed lint
...
Former-commit-id: cecf8e888992de3583c222e98f1e3e4c26c48924 [formerly 67381715d66b4a512d9e884a257ab0609fd81d33]
Former-commit-id: 66fa59bb52e8343843f10247d668e2b3fe8c892f
2018-04-24 11:22:55 -07:00
Terence Tsao
b923b9e101
sharding: feedback changes
...
Former-commit-id: 3251e6a3a13984b154dfb82ffae68ec214177829 [formerly 0bc330ae3445a0d88d014afa412dd4e21bdb5208]
Former-commit-id: 3c3938127ccc1f56ced09496038fa0d72ed32ae7
2018-04-24 08:47:08 -07:00
Terence Tsao
f32a80a911
sharding: added tests for sampling committees
...
Former-commit-id: abdaf09b36f79ea6dc90d2a1d6390b20fb1f2420 [formerly cd0aac8794f2c51e19bd839c0c04bdf4103731a4]
Former-commit-id: 9a53826157411039ec2fad9adefd8623147b6725
2018-04-23 22:02:37 -07:00
Terence Tsao
eb3f491cf8
sharding: added notary tests for degistration and release
...
Former-commit-id: 2c76a184836468e95f5893fcd736420e89769e37 [formerly 01c871c359c0cf74866c9c5738f1574d89610c9c]
Former-commit-id: 49a841231ed673421fca98d9bb54876b1e271ce0
2018-04-23 16:18:07 -07:00
Terence Tsao
8a10e4efa2
sharding: added test cases for registering notary
...
Former-commit-id: dad6acfd8273a5fce14a635999c145776727a50b [formerly 3d88c2eca4e930e07d76c2d28b2122408eb9b734]
Former-commit-id: ea652d4701ba898e007604d9c1e1ae6c94949072
2018-04-21 16:57:13 -07:00
Terence Tsao
0d9523dcd4
sharding: fixed notary sample function
...
Former-commit-id: 608025faad454e517fd144759886e04113805907 [formerly 5b753cdef5fc3f4f4f585e972ba624a42d21c672]
Former-commit-id: 8125d538d91209971860ed637b456ff07dff8151
2018-04-20 16:14:16 -07:00
Terence Tsao
b54a20281e
sharding: fixed notary tests
...
Former-commit-id: 9ba590940143b0de2068c8dfe4233d221d8148dc [formerly b6cefd256e5f0d2db0f8284932ada4a5e4804212]
Former-commit-id: 4aa404a5fd760990ecc4414360e7b02c068a882a
2018-04-20 15:08:52 -07:00
Terence Tsao
d45e45f543
sharding: functions descriptions
...
Former-commit-id: ea79f98f18b2f001c8b0c9579926d7c2de4e45c8 [formerly 2bafc5faedc0dba69799629bd55d17683e06a583]
Former-commit-id: 609f9f31e1b6cebb515300f5c8672c15ae2003c1
2018-04-19 23:41:52 -07:00
Terence Tsao
9d2be9f867
sharding: fixed lint messages
...
Former-commit-id: a79631df65076e8ffd6ab2cd6265a1411456356f [formerly 5f02c7f2b7f50b230e9a434a50d2d569770806ab]
Former-commit-id: 2fd87aa767d8efbefdf54cdc08f49cbea0dd5b6f
2018-04-19 16:47:38 -07:00
Terence Tsao
dfc0ca55cb
sharding: proposer is irrelevant for spec 1.1
...
Former-commit-id: ea7d8068b76b367e99948542e0153afc3e906d5d [formerly 80249c257922b26a0908aea044eee004acdd5bc9]
Former-commit-id: 4483c490a8eb3f1f3eae22ad6574ce132e353b13
2018-04-19 14:59:13 -07:00
Terence Tsao
5e2b6274a7
sharding: fixed naming styles
...
Former-commit-id: 4e50f1f8edc38d24b265e540c060a4c0bbf52052 [formerly df906e85f5ab5fb27afce1569a4f2992a7169527]
Former-commit-id: 5fd3454d63cd3fb05288a413bb78d887eeac08c9
2018-04-19 14:59:04 -07:00
Terence Tsao
b5e77c3867
sharding: cleaned up comments in code
...
Former-commit-id: e733ef576dfa5ab1165bea1bf2c1502c01de0ebd [formerly 9694cff89a1bc823e3f069f40564947715475c11]
Former-commit-id: 3a7109e6f02ec648390f2f6364e71ebb288b5bd9
2018-04-19 14:58:49 -07:00
Terence Tsao
7107f8fa2b
sharding: function to check notary in committee
...
Former-commit-id: d46016ebd3bacbb50cbc03084054ce21c9ac9d81 [formerly 6a95cdcdc60bb4dc6a359735f618ed765553095a]
Former-commit-id: 3db9a81c0d2995ff474b3c10b3b87f8f3432a495
2018-04-18 17:46:41 -07:00
Terence Tsao
ce9a724556
sharding: monitoring notary size at current period and make adjustment next period
...
Former-commit-id: 3a40788c3dad272570980e426c751a9431908a0a [formerly 6149e9eae68a5e7e6f6b87adeafa6467582caeeb]
Former-commit-id: 175c0d263e3a5486cc583640f819c8c1d77adff0
2018-04-18 13:51:31 -07:00
Terence Tsao
4bfa96219f
sharding: fixed up on notary's register, deregister, release functions
...
Former-commit-id: c59f4274aa31f240a8b41f86d36de38782b1998b [formerly f7bc669d44adb550e2902d8ff8f210eb30630aed]
Former-commit-id: 8214f75adeef0c8316bd2fbdee648548a96b91ad
2018-04-18 11:26:09 -07:00
Terence Tsao
ddc67976fe
sharding: /collator/noatry and align constants w/ phase 1.1 spec
...
Former-commit-id: eefbc5f230aea78eb30adc8bb09f7ce7a5844043 [formerly dc9a760f78d3a4d356e9f9d6ccf8b39129ce756f]
Former-commit-id: cff011989f46e2235e700bd84278043038014367
2018-04-18 11:04:11 -07:00
Fynn
46c33c9bfe
sharding: get_eligible_collator with tests
...
Former-commit-id: 19bcd3b213dec79c4fa634e31105c7e09cd7ffd2 [formerly be97e08143820904c399eff1f9b27dccc84bf3c0]
Former-commit-id: e1c18d06271f0df5c667823372ff8f314a6d9f82
2018-04-04 18:05:10 +02:00
Fynn
abdf7b9b9d
sharding: tests for deregister_collator
...
Former-commit-id: b45132122f5ff237082a390d04a9fce51098264c [formerly e75f76656887bac728ab65d60acc330adece44ba]
Former-commit-id: aeea9a6841dffc722f171d2d10c166c8af523008
2018-04-04 07:57:45 +02:00
Fynn
7fa709bd40
sharding: collator functions
...
deregister_collator and release_collator implementation
Former-commit-id: 2c9a3ef1ee840209a65f9d6bd5d27f6efcad4ce0 [formerly f60bca0bc0a46f61dfa45fc62af9c37d75b6a749]
Former-commit-id: 3be99e546546fbf91ffb92586dd9e4448b4b563c
2018-04-04 07:57:06 +02:00
Enrique Fynn
33bfc902eb
Merge branch 'master' into smc_phase1
...
Former-commit-id: 3499684490b234ed887834cfdc36e5d207d260a7 [formerly f2d74d477d17afb2871e5997584ab7ea542f99ee]
Former-commit-id: ce4db3f2fa9925f3a31454d6d0058a1a4c407adb
2018-04-03 09:55:29 +02:00
Terence Tsao
32df032c07
sharding: align config with phase 1 spec
...
Former-commit-id: e51e625451c086edb968f1cfbd0516678eaaa645 [formerly 886d4beb7d029ee156af565a5c1721a7061a4ff2]
Former-commit-id: 35de58aa8e9609e50e53c1c219a94a07a7e73c44
2018-04-02 15:51:36 -07:00
Preston Van Loon
a95d979ee9
Merge pull request #85 from prestonvanloon/refactoring
...
Refactoring sharding package for proposer/client separation
align config with phase 1 spec
update SMC to use 1000eth as collator deposit size
fix deposit for collator_test
fixed config test and added more test cases
Former-commit-id: 7fadb044ec7bb136964781ac271ce6abb4cff86f [formerly d1c93419517a502d37f09560187a9d804bfea940]
Former-commit-id: 9747bdee7a32a4a056402d1f4b0da114c63003b8
2018-04-02 15:49:51 -07:00
Preston Van Loon
72bd785a2e
sharding: Package comments and responding to PR feedback
...
Former-commit-id: 970a229ed8d1cce8c5383a40e313092828c1be69 [formerly 0f30c11d3352946caccc1d325a0551f43dc8439c]
Former-commit-id: 6ca7badf14c01fabf6a63db26214b6a0179aa8f2
2018-04-01 15:46:02 -04:00
Fynn
09446f5ebd
WIP: SMC for phase 1
...
Former-commit-id: d756e5811f4d8803252276d83bc9e189473ed435 [formerly 3f9041a1733c9bb0882b395010008fe2aea5f74e]
Former-commit-id: 3911cda4e088c50ba9a5d85e6a6af963c4773a91
2018-03-24 18:37:53 +01:00
Terence Tsao
af7124e91f
fixed all the typos during integration, manually tested
...
Former-commit-id: 85344d0a515f1bc6d2ac32a43ac7b2fc96e477c5 [formerly ae47d11056c1c4ca49d254c25ab324240751b2dc]
Former-commit-id: 2655a39f356563dbd37a5344a217f8ab5305d263
2018-03-08 17:40:22 -08:00
Terence Tsao
533e12b6e7
updated VMC to SMC
...
Former-commit-id: e8aa99e8cae2f59728986c9bf079ad399bb1d8ed [formerly 7e7f88907c44c4a7cbefd2d0095dee33a86265e8]
Former-commit-id: 7e8ef4440f41760cf346378916242888b44f609f
2018-03-08 16:04:13 -08:00
nisdas
e028d5d8f0
Add Flag to main.go , and use flag in vmc.go
...
Former-commit-id: 53b5ad5831de51e345854a38b1f7928e31ffae16 [formerly 4ee90d9a47c09f436f50f079ea4a8be2e9b86036]
Former-commit-id: ba696db5822ec0293597d68e6945062f477e8f12
2018-02-26 10:20:42 +08:00