Commit Graph

3181 Commits

Author SHA1 Message Date
Raul Jordan
880a5e7c9b sharding: all relevant tests pass, linter passes, ready for review #100
Former-commit-id: 9ab2595c130922bc49fc3c9a69f11dd93b6774fb [formerly 32c501eddb94d5dbfab61550cfa8705be7b8e59b]
Former-commit-id: cfe18a1247e11e07d951e5038bf45d67e15d0bdf
2018-05-12 11:44:05 -04:00
Raul Jordan
63802e98e7 sharding: finished remaining test bodies, now just need to pass
Former-commit-id: 73f723be47a60743b7bca0fa469dd11f014e5fe6 [formerly 98fa2928954ce5bbb9228b2a9fa89c09807cf7d9]
Former-commit-id: 194afc9fb5c10f35a5783de462e6877e2446e471
2018-05-12 11:27:32 -04:00
Raul Jordan
7cb08abeca sharding: finished remaining test bodies, now just need to pass
Former-commit-id: df5d0d09dfd223df52c1986b41f2620c21291629 [formerly 52445dd5719ba379d419b74f9759f52960a6f77b]
Former-commit-id: 5441958a8649dfaa4015032ba0701902ab4adedc
2018-05-12 11:23:14 -04:00
Raul Jordan
742b6104ce sharding: include rest of tests, 2 still need to pass
Former-commit-id: 7042ae002b01c64c61d70b92e734de28bc616df2 [formerly e5fa5056c649b4718f3cd64184f6dbf07c62c0eb]
Former-commit-id: 0e669fd0fca32fc6da1a1bc7beb6b5c07254d72b
2018-05-12 09:57:34 -04:00
Terence Tsao
df211116c0 sharding: addHeader and checkHeader functions
Former-commit-id: cca3337844e469eec619103be79891631f2a1472 [formerly 08815fe23f67a1553dcadc039aedc2e11bbd9b4d]
Former-commit-id: 8f558a42773ed8f27295d2951719ac3cbe7b7133
2018-05-11 14:40:23 -07:00
Raul Jordan
e317db2f8d sharding: canonical header hash test passes
Former-commit-id: 4b6620bbaa724021a219c523d4350e3ff4a545a3 [formerly 48ea338a4b03d4b7e3d280f6061dd5b03f7b16c4]
Former-commit-id: f441a79366b89745d1edb0cc7b5331ddebea25ca
2018-05-11 14:27:29 -04:00
Raul Jordan
6edde106ac sharding: remaining tests for kv store
Former-commit-id: b95783af1808209e492107fbb1c9cb318d04c899 [formerly 17c0946e769872d3f21b17996d73cffe6c8263b6]
Former-commit-id: 334deee870bcfef7107a3e4feeb2a275d9e9580c
2018-05-11 11:43:24 -04:00
Raul Jordan
5dc498f402 sharding: shardDB put, delete can return error now
Former-commit-id: 8d96f95dbe6419d804d86b05dca8f1e90e2b56ed [formerly c42c9e84b82dcc29d50739e0b8eac5bd65f93024]
Former-commit-id: 527cb5170e3eb156bf7c0bb2ec69ef9f32cc8320
2018-05-10 22:00:54 -04:00
Raul Jordan
5f76297401 sharding: address review comments and add new subpackage
Former-commit-id: 9dfe0415a7809738b7683090d08486d64ca2e4c0 [formerly c8f386658475a6d6a069ab44f63a3d6e39a80ea7]
Former-commit-id: 767719430eda75648b408b4f480b25bb68870421
2018-05-10 21:29:42 -04:00
Terence Tsao
506c634889 sharding: beginning the proposer design of phase1
Former-commit-id: ed977c3f8afb314b9694a0d3c4b5bb3ae7eede71 [formerly 648cd3008963a37212220f8f92227ea4caa5041f]
Former-commit-id: 21125d87cdb54bdd172da0329dfd98e8e69a3550
2018-05-10 09:33:18 -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
Raul Jordan
8d2ddf94bb sharding: remove log debug statements
Former-commit-id: 6f936f56853da062b98d3547a44d1d8db19ce26f [formerly a411bb24f5bed28d4097bcab74c22a804ad7f79b]
Former-commit-id: c8f5029343bd1c3a2b485591847447ef58eac74f
2018-05-09 17:36:10 -04:00
Raul Jordan
f8f879f893 sharding: use new header.EncodeRLP method
Former-commit-id: cf610c419a0c56c5257201274eea5cf0345d44ad [formerly b90bb344e2165eecc015f6174dd065abc7365b81]
Former-commit-id: 048f0c5a50c1818c7967a7ffa08f61d22b8a6aef
2018-05-09 17:35:32 -04:00
Raul Jordan
256892e6b7 sharding: rename methods, tests pass.
Former-commit-id: 55e22985980afb8538adcf13eae7242484c6466e [formerly 207348ebbfe33d343019fff3f47c5fbc7d7ea28a]
Former-commit-id: c8543ee2327f9bb1863a90d9538ff302f3db09f2
2018-05-09 17:31:46 -04:00
Raul Jordan
eb9c82b581 sharding: full reorganization of collation struct, encoding, and tests pass
Former-commit-id: 0ba99518af6187fc0711a00748af2e32cbbf5108 [formerly 0db02c5e354fc61ab7468dfc7bff3821ee8926f8]
Former-commit-id: 2defc15718fbffbd4d10a1f32f02a75637493016
2018-05-09 17:25:27 -04:00
Raul Jordan
d1aa843ea6 sharding: address review comments om #100, fix linter issues
Former-commit-id: 5febe72a5a1936ce643488067e0990da810f1f5e [formerly 74c85fc99b259d064b5181f91cddf945e3d7b988]
Former-commit-id: 0cc6d451b5eee6e459597ad114a85bacc7a953f1
2018-05-09 15:23:09 -04: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
a617eba960 sharding: tests get collation header by hash passes
Former-commit-id: 59a0eee266d7a76b09258fcf8009f80049b60be0 [formerly 75c6a22893328306b18d4da1137455847fe85872]
Former-commit-id: 3ec5bc054413b21426d339c4a76832958a0858d4
2018-05-07 18:00:02 -04:00
Raul Jordan
02bcbbbd73 sharding: add test for get collation by hash
Former-commit-id: 9a715b24b4d04ef7a9bd006cb4f90cbdae55624b [formerly 3fd25eec8d68b7cf5b8f56ab7db86e9e92bed8ae]
Former-commit-id: d878d4578faf7053b914428a12ee3d7eeff83b3c
2018-05-07 17:33:35 -04:00
Raul Jordan
b56056668c sharding: added tests for get header by hash
Former-commit-id: b880b352c90326e0c3649b5fa932f77f4938a26e [formerly 37d96a59e637f2f7348b6be0fe1d12889ae272f7]
Former-commit-id: 557473d2699b0a29a127fd0994887f5d87328463
2018-05-07 17:29:51 -04:00
Raul Jordan
191568b957 sharding: test validate shard id
Former-commit-id: 4d83cbd308332a40187191501836e92d3973367c [formerly d5b64486b85afd0c215399b8de520b2d48e8e773]
Former-commit-id: 4a06d18566b3f76eb67405c0e27e78ec06c2144f
2018-05-07 16:51:27 -04:00
Raul Jordan
1e31653514 sharding: fully functional receiver methods for shard. pre-tests
Former-commit-id: 8964a0d79f57aaef5599f6647e39fe15fdd24b9f [formerly 1c8bf6c78834b8829acdaf8a21c5ab088696a890]
Former-commit-id: e56cffa5e4884b287292bf3338f2612ed1a57ecb
2018-05-07 16:30:06 -04:00
Raul Jordan
b6fe3141da sharding: merge from master and fix collation.go conflicts
Former-commit-id: 1b36c995ff866f71c265c00f12bd67ae4cd9ea7f [formerly 8d527c11b771956e5b8fde3e3edada3a5dcb7777]
Former-commit-id: 90b1e63f696d31757f25dd4a714b89e95b4a3bcf
2018-05-04 14:20:38 -05:00
Raul Jordan
e79e9f43a3 sharding: fix shard methods and lookup keys
Former-commit-id: 5cba9cefd8d480ec9856ce3059b089f32ca4efce [formerly 24ec21a5989261e155d88b19c4df07b501b97942]
Former-commit-id: 97a654f56e99a83eb4aeb11349e5c0ac9ad0caec
2018-05-04 14:18:48 -05:00
Eli
3d03dc07a8 signer: fix golint errors (#16653)
* signer/*: golint fixes

Specifically naming and comment formatting for documentation

* signer/*: fixed naming error crashing build

* signer/*: corrected error

* signer/core: fix tiny error whitespace

* signer/rules: fix test refactor


Former-commit-id: e5aa4376db0bb59d577d0fc62b0d5e5766ce445e [formerly 8161f1ac395ffd49126597cb640ca9fff5e3a8df]
Former-commit-id: 4b759f413a22175b9bd0b6d47a9878a3e5440b17
2018-05-04 11:04:17 +03:00
Preston Van Loon
f192d00165 Merge pull request #105 from rauljordan/tests-fix
Fixing #104 By Removing Outdated Tests

Former-commit-id: c7961ce97d0539965083649275eb8785a7aa859d [formerly 18910123893b2c53c93f4d642896bee32f65f233]
Former-commit-id: 61a545015294a2f9c91b70366ac2855a394d6e5c
2018-05-03 18:13:45 -04:00
Raul Jordan
039c2e3453 sharding: readded tx added test, travis passes
Former-commit-id: 4bd71e699dfe2515c6b472fd41df1ab51b1cb017 [formerly d9475982b5f6ed7249fb2c4470b3a3889ccb430f]
Former-commit-id: d6c56cc922a93cf33c22f7650061463c064583b9
2018-05-03 16:32:42 -05:00
Raul Jordan
b524c0eab5 sharding: make shard func
Former-commit-id: bbb2c9cf92add01dd21480ddf76d14d93c5ca193 [formerly 8a52bd1e5370434ac174968a4767f47ae310a35f]
Former-commit-id: 31256de9b910d8e4131b19ef69d7815df025f362
2018-05-03 16:31:28 -05:00
Raul Jordan
f0c7f6c76b sharding: fix tests issue breaking travis
Former-commit-id: 1532326cb9ca304bc996593bb0b34b5cb64b7306 [formerly 0b8d319fbdde381d335cd4b0c6ef6bdf1fab66b2]
Former-commit-id: 5c728cf6e5a538498834c2771f9ed265239b7f62
2018-05-03 15:37:28 -05:00
Preston Van Loon
4b13b443c7 Merge pull request #103 from prysmaticlabs/limit-travis
Only run travis tests on go 1.10

Former-commit-id: 68f39b28735d6992ac38ae54e06adc81db2d41ce [formerly 8e07ff0a22749787835e2ab0c383f9aeddf320e9]
Former-commit-id: 7aebc03683e4edfefeee6fdfc63188ccf4dc57a6
2018-05-03 16:16:07 -04:00
Preston Van Loon
43eb0e6187 Only run travis tests on go 1.10
Former-commit-id: 2ee7fe6d48d1936fec489c2018e89e84bccba50f [formerly a0e110a5a4563fee0ff9eaeef3695cce3cd84e76]
Former-commit-id: 0d75e8025a355cbe757f0bf01daba8640dbfe114
2018-05-03 13:04:11 -04:00
Raul Jordan
780779f51e Merge pull request #95 from rauljordan/documentation
Updating Documentation for Minimal Sharding Protocol

Former-commit-id: 70c6f3d4be795e4a64c298989367e58b4ce66a1c [formerly 2b5d35e81b98e60ba10ff15b2d1f431ce9a5b258]
Former-commit-id: 767d07f1605ae319378183529c1902ba078a1031
2018-05-03 11:55:07 -05:00
Raul Jordan
1793e7d21d sharding: fetch body by chunk root
Former-commit-id: 5021890d223501bf163d6beae4e4e732673950d2 [formerly 92e89aed0c61909971cf9262cd3002bf2ae2328a]
Former-commit-id: 0fd4497f880213878965107de3f782b44c33f065
2018-05-03 11:54:05 -05:00
Raul Jordan
84a2cb08d7 sharding: collation header hash and shard receiver methods
Former-commit-id: 4cbacc539c2ef7c273c926d989449def39bf7b9a [formerly 7930332c151ad370317590556169411f875c84f9]
Former-commit-id: 7533fcba8e6c6739ccb8ade408654e2b18e50c83
2018-05-03 10:48:25 -05:00
Raul Jordan
887b72ff11 sharding: beginning receiver methods for shard type
Former-commit-id: fc39828fa985074ec20fd3ec1a99c612630b8b1f [formerly 89a47cea8d6d4c2ab1aa77d1d713680394dc823e]
Former-commit-id: 44edff25e19c39aeefbf08f260373c0976248f74
2018-05-03 10:22:28 -05:00
Raul Jordan
7b8417ba4b sharding: fixes review comments on docs
Former-commit-id: 867c2be5c15640d8d71a396c224689df060e931b [formerly 4ad129e22ad24b29a6d5038ba9f4350133211b46]
Former-commit-id: a2d6cd11c05f58a728be8210734d1dce94be3bd3
2018-05-03 09:19:12 -05: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
Raul Jordan
7dca604900 sharding: merge latest changes from master
Former-commit-id: b3544dbd18d90f5a74144ffd736603f06e213f27 [formerly 50e7040547ef0a6432dc15d74758d8cace1eae17]
Former-commit-id: 68effa7c70be7ce685c6f4f925e7a8100a1d3547
2018-05-02 20:09:20 -05:00
Raul Jordan
b5a8ed01f5 sharding: merge some changes to docs
Former-commit-id: 2944efe703619f5b9ee4d50de488a6f57cb14ac5 [formerly b5d1d6210291ccc04bc20e6c1377b353b80b6b4e]
Former-commit-id: 2ae6f1536689596b9c94bffc76792f38f8ac8500
2018-05-02 20:04:46 -05:00
Raul Jordan
3a4c884eba sharding: finish updating sharding/README.md
Former-commit-id: d57abafa27284eac3c01171d89e3971470ab158b [formerly 99ad1402ba7ea6d5094e47996c09f9636dc569f4]
Former-commit-id: 69811441dc773f00af3b1991789ad27c0d095475
2018-05-02 20:04:19 -05:00
Raul Jordan
c10a02d799 sharding: update half of sharding README
Former-commit-id: c1361950a7379cced87c16cd0ab054d963f083e8 [formerly a13aa2636ca4795ef862a41a3f350973c75112ed]
Former-commit-id: d5a173b258e6ffd2ec3f221031de9c2d93ca0f8c
2018-05-02 19:19:59 -05:00
Terence Tsao
86820bbe13 Merge branch 'master' into add-header
Former-commit-id: b6291004938d0f49089e596156564ab3a7d096a9 [formerly d2fee7edb819cbe0ad847647a31af8f4fe8da208]
Former-commit-id: 9d062b79f83e3cdbb6eac9ccbf2fa55ce05b17a3
2018-05-02 13:10:40 -07: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