Commit Graph

3734 Commits

Author SHA1 Message Date
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
Raul Jordan
e51ef0be87 Merge pull request #98 from rauljordan/formatting
Fixing Comment Formatting According to Best Linter Practices

Former-commit-id: 9cea91282e4f4abb12452789170508c6948513c1 [formerly 07a948d06466be9ae694cf10b06fc5e1edff07f9]
Former-commit-id: a779adf197484b50af077ecc2217c0af4e8de62b
2018-05-02 11:43:30 -05:00
Raul Jordan
9a259f7f48 sharding: added missing comment
Former-commit-id: 4b3a87bae0997905cf7ef4085094356bb8c53c1f [formerly d0eafdcffbdc0fa18af281dadb13b8a7745b5f72]
Former-commit-id: 6a7e0a5328eecbdbbd61005a3b73ab297e5fa2f0
2018-05-02 11:39:07 -05:00
Raul Jordan
69408136ff sharding: beginning the shard interface
Former-commit-id: ba302afa3fac69fd4ccd3253a5e2a62728d1ffa5 [formerly 7bf1d53b8710efde5ab98460893632196547cd46]
Former-commit-id: 0cbdd232baf17fa348af742e18d8b4c533a9fc63
2018-05-02 11:15:24 -05:00
Raul Jordan
cad5710590 sharding: fix return type of NewClient in client.go to return interface
Former-commit-id: c00c1905d427948185c354651ba223d445ffd801 [formerly 89f4058a8774ac7a996f7f28e1c0f973dd92ef84]
Former-commit-id: 1e54ceb3fd9e47864779b4ea132382f0a15aa3eb
2018-05-02 10:39:08 -05:00
Raul Jordan
701a33caec sharding: fix exported type warnings by adding corresponding comments. Cleaned up comment formatting across our packages
Former-commit-id: 74b60e1bdacfa4889a4b7a36e22698e7bc8a6084 [formerly 6f5d01b919d58ebffa7d5c1d197d2236c2f906f7]
Former-commit-id: 3ad090ec4170cc2bc901caae17f1eb4895af2c42
2018-05-02 10:37:44 -05:00
Eli
89f0a45668 trie: golint iterator fixes (#16639)
Former-commit-id: fe3d7c1e0956ba6ce2dc5b2e4a8142e3753c9b7c [formerly cbd57f04bdfc7105341b7c0286a0d2f432373fc1]
Former-commit-id: e2c38a0175a5f52a75e44b373a6d35de6cc3f58f
2018-05-02 11:24:34 +03:00
Eli
113c4a5711 tests: golint fixes for tests directory (#16640)
Former-commit-id: cef7afc0f6bc8b89a0c94bb0ece1c4992d8a455a [formerly 09f38dc0ed6735f7b21993d462a70de57cdaaea8]
Former-commit-id: c0c5fc2fc3d829175942cfaf69ccc3075dd8dbde
2018-05-02 11:20:19 +03:00
Eli
1cf6747d06 whisper: Golint fixes in whisper packages (#16637)
Former-commit-id: 6a2a7c34e451465eae5d78f76e310e36a412d848 [formerly 6294fcfb3a206061cc8f9309f945f9b0c5a332a2]
Former-commit-id: e2d352442cc4b45620454ac6ece0f8d3d564ed11
2018-05-02 08:17:17 +02: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
66de62a85e sharding: fixed sharding cmds
Former-commit-id: 84365d981a292b44d38468c37367f8c0ed44705d [formerly c0b601ccd621170fce6f2c43ef2a285fd712d272]
Former-commit-id: f49352c4985317271d073edec7d0d520c4a56684
2018-04-27 18:10:37 -07:00
Terence Tsao
9f791f20a1 sharding: merge with master
Former-commit-id: e48146fdad0808ff828bf53a039ee9cffba0b9a4 [formerly 4c6b0a3d19a582949b1542837c6132768df86da7]
Former-commit-id: 4a83a6533243b5d7afa24767777164e18defd7af
2018-04-27 17:23: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
f308706680 sharding: \notarys\notaries
Former-commit-id: 7eb970515405983d0d0d8f805fdff5c5a3317f93 [formerly 664a9e0acbccebda143006e8063389884efae880]
Former-commit-id: 61c048015002bf92da708f80365dfc38d11671ef
2018-04-27 14:14:55 -07:00
Terence Tsao
2732187e64 sharding: file name changes
Former-commit-id: add615ca3874397fc04d935b15d0913dcd2b4e18 [formerly 32f4e81a98e3084c1a9c7d277862a04f541f4cbb]
Former-commit-id: 63a1630e1f679a7a341d0194c16c9cf9d11cc342
2018-04-26 15:44:34 -07:00
Terence Tsao
791576b204 sharding: \collator\notary\ on all files
Former-commit-id: 859723690bc327d7df9ffdd8f7ae247c05e1e1bf [formerly e2603e530217645b3f1fa180613ba27dca74e2f3]
Former-commit-id: c812bd611996a0a8a344064199163aa709ee3f24
2018-04-26 11:10:31 -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
0b7df21505 sharding: fixed lint
Former-commit-id: a333578841a9058f1e7f298970fb1460ac5eefe1 [formerly 4dcb80be36a3d4d59e0c950e318ae277c792a725]
Former-commit-id: 576570909a92d0858cae2fa2fd8f6bf7088f06f8
2018-04-24 10:18:45 -07:00
Terence Tsao
08325ed7d4 sharding: abi name changes fixed other packages
Former-commit-id: eeb039b0e54b958cd64174495c8632ca66e240d1 [formerly dc0fb2653ee915b4033d3ed8cca10a4204ae7de8]
Former-commit-id: b138547efd51ac985ff7c759eea5d288149b460a
2018-04-24 09:01:16 -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
c8b0b8034d Merge branch 'master' into smc_phase1.1
Former-commit-id: 6a8504f2b14443bfd6457716b739084b319ec971 [formerly 51429ea2436a7b56a075f1d1590e08545b7a8669]
Former-commit-id: f2f7b4f5f2d3490436f34a3cb386e8c1f50f799c
2018-04-23 17:56:07 -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
Raul Jordan
fabb563468 Merge pull request #91 from terenc3t/config
Align sharding config with minimal sharding protocol

Former-commit-id: de8ca6974d4afd55f7acb2478594f6787319691b [formerly ea8642aa2aeae238ade6329352777761d624c667]
Former-commit-id: 62470999ad55ed30f1e2db79fa907848b59edb2d
2018-04-23 15:25:49 -05:00
Raul Jordan
4f5404c552 Merge pull request #90 from terenc3t/collation-header
Align collation header with minimal sharding protocol

Former-commit-id: c5b6c8c04d537a5a6d41c27562a477b88dc25dd8 [formerly bed47e36747ae7a3b1f95ec4dce1cb6f8cb4b09b]
Former-commit-id: 0814bd14e96fcc607a9b4f4a2e93ace248bcebf0
2018-04-23 15:24:22 -05:00
Terence Tsao
495f6ea312 sharding: removed parentHash
Former-commit-id: abb7faaf16e79105b301f412f293776aef1352dd [formerly d59d6bea68aa80bb0aa79e3bf6d23de1d6596f8f]
Former-commit-id: b4b2e2a45661b9268117b91b8ad8c0386611ab93
2018-04-23 11:52:24 -07:00
Terence Tsao
b91567e961 sharding: collator -> notary
Former-commit-id: cbe92076bf961b4a506e8acda66ba0e5abecfae8 [formerly 6f7b1551946be0351fc1983d8fd431cfaabaff24]
Former-commit-id: 78619799ac7d64dd00e32e7d3020d361546dca93
2018-04-23 11:42:08 -07:00
Terence Tsao
c2a80b6a65 sharding: add parentHash back
Former-commit-id: 125c45ffa41de11f00a55854bea39d3b1057eaa4 [formerly e192b92393f26d84afdc1243e802cb3feb6479b4]
Former-commit-id: 5c3d9063f31b312c362074937dc6fbc1192c97fa
2018-04-23 11:34:12 -07:00
Raul Jordan
d5ff23380e sharding: update documentation for minimal sharding protocol
Former-commit-id: 24aecf98f904e0e517377f86a22a9c1efe4adb18 [formerly b332c7e0d3d5e46423b94278a7eda970a0a395aa]
Former-commit-id: 42be6cc789c0c00aa92cdffc5da586ae100b4434
2018-04-23 08:36:09 -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
Terence Tsao
2450f14971 Merge branch 'smc_phase1' of https://github.com/enriquefynn/go-ethereum into smc_phase1.1
Former-commit-id: 514310116906d0e4531bd714d4b38256f6da8f3f [formerly e68690130b4d0f0547c168b3ccff41c012669f96]
Former-commit-id: 601235a7b4929b74faadd5e237017c7da5e1eea5
2018-04-18 09:56:10 -07:00
Terence Tsao
6d1604f482 sharding: added proposer address back
Former-commit-id: 12ab8ef26946cba413232622e830b31075bfb68c [formerly 50b00ce9998cbcceef4ff8c815dc7a87e491aff6]
Former-commit-id: ceb37809573d83161cc69929f6c9c54bb1acd60f
2018-04-12 09:38:52 -07:00