Commit Graph

50 Commits

Author SHA1 Message Date
Terence Tsao
431dbe521a merge with master
Former-commit-id: be6dd63cd6331e8e4dfcb75e588a21a4a1eb1ac1 [formerly 3eb428951073367dfdfb940f337b267f99b04a88]
Former-commit-id: ecec29608b437876d75422bd30c1d70c88da9a01
2018-06-06 21:59:11 -07:00
Raul Jordan
7b41757654 sharding: sync with master
Former-commit-id: 53c92a9cbae6c604d0edf429e0fd0c8d22f70825 [formerly 02d09912b46393fd29930ae7d04ecf7ff6e2861c]
Former-commit-id: c1d5b8f21d9f7bc35820a231fa74a87456fb6360
2018-06-06 11:06:01 -04:00
Raul Jordan
3861c0cf06 sharding: ensure godoc for every package
Former-commit-id: 0ecc597de035e61ca219f4f30695cb8db59c129b [formerly da9312c1c9d69010083f94f387fe6a52aa817683]
Former-commit-id: 8c8c218e16ef248ae8954168cf7bf5aa6ed6839d
2018-06-05 17:28:57 -04:00
Yutaro Mori
01dc3e8b9b sharding :Serialization Perf (#147)
* Serialization performance improvements

* Rename BlobOnly benchmark tests to NoRLP

* Refactor Serialize method

* Add additional tests to serialize

* Formatting

* address PR comments

* doc comments

* linter

* More pr comments


Former-commit-id: 9b01e1cd76eab2dcc9570683c42f578fbfbb2553 [formerly 722f61729adae8236f3cfefde3fdbd0ec66222bb]
Former-commit-id: 26093b4f9d4473a7f7740f6bc66976e0218a7722
2018-06-02 21:14:17 -04:00
Terence Tsao
85e22add7f sharding/proposer: Done with tests. 6 more test cases added
Former-commit-id: e8c5e0a26986efc32623fe77fc0323ddac0add53 [formerly d0b8da69783a0bf5ef6cf70e0919ea8d6cd8a80e]
Former-commit-id: eb3a4b43b91a55a743896c42d9636f9efa1369e5
2018-06-01 16:04:42 -07:00
Terence Tsao
ba4a5532b0 sharding/proposer: function to construct collation
Former-commit-id: fb616312b285b3aafd342c8de741948ff4c2b554 [formerly 61e59b90876ddc7798ed05801cc46e19b0be0a76]
Former-commit-id: 02d65584d6cc2314a13c9ef1a9a6f300e0de08e7
2018-05-25 09:15:13 -07:00
Terence Tsao
1ac4d1c8c4 sharding: fixed starting name to comply with GoDoc
Former-commit-id: 076448c1fd955cef2dd9f89bcdd33fb008531074 [formerly 0e6f4dd63cdce5508f2e3c261874893de49a21e9]
Former-commit-id: 7e105ab6ee97ca5cb2c521e752ddd13808754364
2018-05-24 17:24:58 -07:00
Terence Tsao
f77842dc9e sharding: changed names to be sharding specific
Former-commit-id: a10d8edaf1e636f6e7b607d4707f922efb2f53dc [formerly 285d77512ccffc837bd2030800f497178d39df15]
Former-commit-id: 92c2300e6efd75cc7fa7dfeb0210c86a561ba82b
2018-05-24 17:18:55 -07:00
Terence Tsao
60d88b561a sharding: Serialize function shouldn't take pointer receiver
Former-commit-id: d8e4dc907322ec0c8e48009b388d6b15308f269d [formerly 54001b3d03307606542956759709f4b592e54d2d]
Former-commit-id: 46d67285c8c47093452c3aa915fcc13aa492a285
2018-05-24 14:58:44 -07:00
nisdas
05401b7547 sharding: Fix Lint (#92)
Former-commit-id: 25b3147ba8e7a67a7ed0215ea0e382699523d876 [formerly 72089a1b1f593814322659488ffd336088335056]
Former-commit-id: 2cea947acd95d3a4e57d5356b329f79f57c96901
2018-05-17 07:31:25 +08:00
nisdas
33c4f15586 sharding: Adding colon(#92)
Former-commit-id: cb11c83f0d32b7e8c383c974378ddbdb756ecbe4 [formerly a88b20fb68d81b018bedf6f3ba3ce2d0a0f70918]
Former-commit-id: cf5df84fe22b937198569b6092ff1e602865bbec
2018-05-17 07:23:48 +08:00
nisdas
d7f9cc8079 sharding: Removing pointer receiver(#92)
Former-commit-id: 09bb5072963354b735d5c0c22c9d43761cab8234 [formerly 907a147c13b3d28605fb6380d0b8ad8518f92208]
Former-commit-id: b3afc338970d4f8e199f87396a13cc91031d1829
2018-05-17 06:31:02 +08:00
nisdas
2635979934 sharding: Made Requested Changes(#92)
Former-commit-id: a87c10e58acc0af3364f1de4b67856e084cd8a5a [formerly cef802b4046ea9fc8f5e1d46a4654218dc9b5410]
Former-commit-id: 5b463c6e066e3dac2a8a2f488f35855d579ee879
2018-05-17 06:31:01 +08:00
nisdas
97785d2322 sharding: Cleaning up (#92)
Former-commit-id: be930e31eea223934f0fa9aea28e306817746bc1 [formerly e8988d068f485c08bd3b30b6c53a39ce60864ac6]
Former-commit-id: 6d2dbb09d7fb965ee202c9834526f28a0be58ae8
2018-05-17 06:30:19 +08:00
nisdas
48977ba2f4 sharding: Adding comments to functions(#92)
Former-commit-id: 5b0e344d84b8d1ff8d12205376c9ae8715c7089e [formerly fe3697b50f74dc0b7fe43139c2d03744dfa32e80]
Former-commit-id: dfd0123b09906dae10bf4be245c5119ce958a236
2018-05-17 06:30:18 +08:00
nisdas
d7bd242256 sharding: Adding roundtrip tests for tx serialization(#92)
Former-commit-id: 71f037aae070dcc5761f06591e889b31075c7b40 [formerly 8158b9365e8cfa148149afb695bbd982c677cb80]
Former-commit-id: b6a4bc45fde9a7c92dc53733d3440ba4d9b8334c
2018-05-17 06:29:22 +08:00
nisdas
92102262e8 sharding: Fixing tests in util package (#92)
Former-commit-id: 4feb34fa32cf0a3495a4fc8f8feb6336b567fc15 [formerly 9e5f85247891697f33c8f832538d46d59334524d]
Former-commit-id: df3014bfd85e11af88bfc4d359a4ffb26bc34551
2018-05-17 06:27:27 +08:00
nisdas
cc271a84f6 sharding/utils : Adding RLP encoding (#92)
Former-commit-id: a18ff8c27d7ec87cd38e112f6322a753fb892307 [formerly 228bddfcec86cc2b94ce0694ca14faeeb5c926ae]
Former-commit-id: 375f57b067e4ec5abd0e3f90c9a7fbf96c741c29
2018-05-17 06:27:26 +08:00
nisdas
be6051d800 sharding: Fix tests and clean up(#92)
Former-commit-id: 7f58a5eb03fa6347ff5fae94443bf896f9db0486 [formerly ba599c2e0344c9e416cc5fea735407f3df3624d9]
Former-commit-id: 13abf7e8ce922cb3a81e43b03d1793af2c9d6557
2018-05-17 06:26:52 +08:00
nisdas
52cd2b04ed sharding/utils: Changing from interfaces to rawblobs(#92)
Former-commit-id: 5901594a02b82d0cd11e85593f7021d0cb0a6d62 [formerly dd57899b147bfb258557c20917b971338bc79f84]
Former-commit-id: 047157dcdaf452f1e9d329684dd632c4a44c8af6
2018-05-17 06:25:44 +08:00
nisdas
cdf89d07ae sharding/utils : Adding Collation Methods (#92)
Former-commit-id: b59692c3ccb912131f0087a3f19cbfa88886a6e5 [formerly 7e7497f4f461a9288e83ac80633b90a25dc8a6a6]
Former-commit-id: 5f5e64a4f757ae637c2148ead844c7b3970197a2
2018-05-17 06:23:30 +08:00
Raul Jordan
e0ac2918cc sharding: hashes collationHeaderData instead of the full header
Former-commit-id: 0cb0dcbd3241a34c34fd79cef2f8fec8e4ba0d5f [formerly 5e2f12a776dd956b1f98dc5a85b93a06ef22b581]
Former-commit-id: 7619acc6315efc4d71d0687b048d223a8cf4e3f7
2018-05-16 12:59:00 -04:00
Raul Jordan
54875f5389 sharding: fix typo in collation.go
Former-commit-id: 223f5fa3ac324327f105dff1f2912a5392980af1 [formerly ff32f9f6ff29e64467786dec0825fbc74835e319]
Former-commit-id: 8b36f30091c9314592cf85899caa3fa095ab112a
2018-05-16 01:13:06 -04:00
Raul Jordan
083c93e712 sharding: address review comments
Former-commit-id: 3d5cd49930ff1a07ccb544910e2b4bfeb75f04de [formerly 0275d8ec3ce981aed3ea2f88c660505e809f6b7d]
Former-commit-id: d291b375e7550f8792ece3e982f6b85da862ffed
2018-05-15 22:55:02 -04:00
Raul Jordan
77bd934efb sharding: 93% coverage
Former-commit-id: f1a9fcf4fe1d11855e1dcb0a898f389dc669ab64 [formerly d255a71b60d1a939d2c7861039aace088a9fd34d]
Former-commit-id: 3671d13ffb1c71cf7c48eebedeab53fd16d4a0fb
2018-05-15 14:48:13 -04:00
Raul Jordan
6e10d9fa6d sharding: improve coverage for #100
Former-commit-id: 1fc773af9e07a79f63bf63a097526a7c3303cd14 [formerly 59b4763c8b101068eacd717caa757846a481c514]
Former-commit-id: 6b8162c9c976f15e19e16fcdda7fd3d274b2e151
2018-05-14 09:53:20 -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
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
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
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
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
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
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
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
c2a80b6a65 sharding: add parentHash back
Former-commit-id: 125c45ffa41de11f00a55854bea39d3b1057eaa4 [formerly e192b92393f26d84afdc1243e802cb3feb6479b4]
Former-commit-id: 5c3d9063f31b312c362074937dc6fbc1192c97fa
2018-04-23 11:34:12 -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
Terence Tsao
19665aca8b sharding: align collation header to minimal sharding protocol
Former-commit-id: 1c630baa8d0cb0602dbbd4073998d78e2be6502f [formerly 236e508800ed9dbcacdf6fdf3375e538294b356e]
Former-commit-id: 00f8ddf9246d3378279325e53824c1f451a2c11f
2018-04-11 07:45:24 -07:00
Terence Tsao
f2660f4bd7 added tx does not exceed gas limit todo back for #37
Former-commit-id: c9bf9cc7564922c617245519e771b4966a4058ba [formerly bf1f8c7111408195e1c5508f03ce058881e70f97]
Former-commit-id: af346bd57e9dac6f6d6bdb22d70270e7fa8207c5
2018-03-21 07:33:57 -07:00
Terence Tsao
f30bb129cf removed todos
Former-commit-id: 05cfda4922ebf3bc57aa57a94a001ceb6be615e7 [formerly 094b52515d872458155169161008a71ee940d538]
Former-commit-id: 377d521fe46955b41c66d52769b42a4b04244d68
2018-03-20 22:57:35 -07:00
Terence Tsao
009a96f8c2 format
Former-commit-id: 0dfd8ae44d6bf896b9d0c43f7cd656c47291fb77 [formerly 37a4fe6edcc9447d8233c05cb06888bc33e8ac20]
Former-commit-id: 1fdb96e7d1dab081c685f705120f270285c4cc84
2018-03-20 21:10:41 -07:00
Terence Tsao
d625475a96 added TODOs for tx to blob
Former-commit-id: 5b122d8260ec36d7b9931cd37194993915aeb363 [formerly 2a1376100a61088f5bb455462c782175985c8e6a]
Former-commit-id: 157da67786f1b0132625e9c91564399f7afa96a3
2018-03-20 21:07:40 -07:00
Terence Tsao
84b53b0942 collationHeader updated to align w/ phase 1 spec
Former-commit-id: b340430ddb847c52c6e50358a6332354200ccfde [formerly e51bfd83e6ddb4d2a099f5afe6dc8f54eaa40217]
Former-commit-id: db119d9e55981418c8b170d8207fe4f4c6c0c4fe
2018-03-20 10:36:30 -07:00
Preston Van Loon
147864f221 s/collationHeader/CollationHeader/
Former-commit-id: 3ded106afb6b4eea8a93b5d2d5834fec824128e0 [formerly 5db6c8280186a059b6514948e6cc11d17555ab70]
Former-commit-id: 858de6272dd74ae6061823e9d1ce9225a3f8c139
2018-02-23 09:54:36 -05:00
Preston Van Loon
e65be3456d Add getter/setter methods for Collation
Former-commit-id: 7d76aa16fac553b57023f91e808653b202308ad7 [formerly 46a739d7c1caff57beb6abb6285b8ad70db990c6]
Former-commit-id: 1c428340e16ce4b8dad92d89a0f2a6e69872ca0a
2018-02-21 22:39:51 -05:00
Preston Van Loon
2afb1e5227 Added collation and collation type. Added GasUsed method
Former-commit-id: 16fa7aea81210b0dbb2f8f2fa560a046ae14fc73 [formerly 5c7fb20b829a2e19b6ea7fbc14cc8284b84658bd]
Former-commit-id: 07c65a1d78fef9b362db229e7266e97af78da6e8
2018-02-20 23:57:52 -05:00