Commit Graph

459 Commits

Author SHA1 Message Date
Raul Jordan
65c7c390a5 sharding: refactor proposers
Former-commit-id: 27b5dfe6a36681e873a11887690428e255df1d97 [formerly 6394a809217dc1450fdfb1d6de7f91153afd6eaf]
Former-commit-id: 57f44262b2223ddefa48558d0b4e9cfa6b85d00c
2018-05-22 06:34:12 -05:00
Raul Jordan
bb95a087d4 sharding: rename client package to node
Former-commit-id: 8c311050eb7fe3935642fd94eb08e0f1622ff811 [formerly e5fdf2de13229bdbd174cff41bba9cdc64c4424f]
Former-commit-id: bb4cf8b1c2b8858ea9ddb96242473486b165adfc
2018-05-22 06:16:57 -05:00
Raul Jordan
12e3022924 sharding: simplified newclient func
Former-commit-id: 6eb95a742250f9ae60168bd5e0b7cb53269c2df3 [formerly c73b26eb0f7a4711aa721465dc9c77422b574223]
Former-commit-id: b445b60bac2ddf45b943b113f362b0d829001be5
2018-05-20 17:54:49 -05:00
Raul Jordan
33cee9216c sharding: revamp sharding client config to single entrypoint
Former-commit-id: c9a959ba300f50f1c652189377859c2bcae04323 [formerly 5e0e9b9abed8a7d06b01d36266348e5ff31d0f07]
Former-commit-id: ecd44985ed6cdb7b16390904c65d66fee68ce7b2
2018-05-20 17:47:47 -05:00
Raul Jordan
3c8e7807e3 Merge pull request #92 from nisdas/blobSerialization
Blob Serialisation

Former-commit-id: 35783a1d0e0c2aa1365b377fd96cedb1ce75ebeb [formerly 524c27765117da4f2fa1604ec37f01a07d28bbb7]
Former-commit-id: ff173d74d835914263c89b6bf21ebec3cfdfd0c3
2018-05-16 23:40:45 -04: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
676681e67a sharding: Cleaning up after merge conflicts(#92)
Former-commit-id: 0417e770170d2ca1beca38ebea578481f7879a14 [formerly 41e3fc2c30d92a7d63c65cd7d3b6bed319ad43d9]
Former-commit-id: 9898b390b701b419f02a5fa048b00c940cdcb2dc
2018-05-17 07:00:31 +08:00
Raul Jordan
c58083ec09 sharding: fix up comment formatting in marshal and marshal_test.go
Former-commit-id: 8cc3e8f619fc65d6230f38757b499e25b342bd3b [formerly ee95d821432933f87e0701160849e831a6489813]
Former-commit-id: 93993c0d37ade450c7796020af1d30d2481ea1c7
2018-05-17 06:31:02 +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
2ad6e31004 sharding/utils: Got Tests working again (#92)
Former-commit-id: 08366f9b544217367dac936d2bf651a26f3a05aa [formerly 01ac4ab902c77b80226ade667d4b955e3c4dec4c]
Former-commit-id: 4dcaf518aebda008e04f27043067ffa0eb6dc5e3
2018-05-17 06:25:44 +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
ef997fe2f3 sharding/utils: Fix Lint (#92)
Former-commit-id: eeb3e8626b2956c37b5730e4ea70898cb9a70c70 [formerly e93169c79c888f006c35b3790f7ae3707c6b2249]
Former-commit-id: 0ccbdb8530e85e13366755615b2c1d251d10f2e8
2018-05-17 06:25:43 +08:00
nisdas
17c0e79f1c sharding: Removing Test (#92)
Former-commit-id: 24cbfacd178e77721dc50a36bec4d8c8aa0ff1cf [formerly ff1f6be335a2d30b5c7ccd309261b187fa833e4d]
Former-commit-id: 1540df8a127da2d1d12f1761022dad3162814aa1
2018-05-17 06:25:43 +08:00
nisdas
3749175c31 sharding: Cleaning up tests (#92)
Former-commit-id: 143739c759abdd01fb74539a85c5cd4abf5d1b79 [formerly d375cec6b8bfb6c08946e6bad5d423a02e554333]
Former-commit-id: 302a456f3e6045605fa32790933f999844793d68
2018-05-17 06:23:31 +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
nisdas
e46714c9a8 sharding/utils: Fixed serialization tests(#92)
Former-commit-id: 7bc42f4bf78f03ddecd07d309699e5771bf2e501 [formerly 9367511015a33dd13d1c605c7d4da94617a0138d]
Former-commit-id: 0dd05673b86cee96f5b5d436b58584d9c78c3e0b
2018-05-17 06:20:10 +08:00
nisdas
0cf0c8b8d8 sharding/utils: Shifting to utils package(#92)
Former-commit-id: 3eb0cfbf6c9c2a7ec9619d2f93c1be8ca8b670c9 [formerly 108d9e22841fc81bb11be3fd6c0f54a65c257b0c]
Former-commit-id: d128c55b6437515a3cc654f502e267f43a691cc9
2018-05-17 06:20:10 +08:00
nisdas
ba48071e2d sharding/client: Removing errors(#92)
Former-commit-id: 0c678a1778c83476c688a1bf1353aaba8cde10dc [formerly 7c5f2802600371759e1c62a64be357d05f8a2012]
Former-commit-id: 34566a72446f3e902095da0b57bf4007683068f1
2018-05-17 06:20:09 +08:00
nisdas
c25de5167d sharding/client: Cleaning up and refining tests(#92)
Former-commit-id: 45ebe18e2281496741d6b08fae04419a55f008c6 [formerly 5473045b0034020047308e3707b365c04fe35a69]
Former-commit-id: 4df6d79425d6c3ab0ad184c18063e4b35eea12de
2018-05-17 06:20:09 +08:00
nisdas
e0282e9e82 sharding/client : Adding Size Test (#92)
Former-commit-id: 553d0fc1c4e99d0c3216bcb624c9f05cdbb07e1f [formerly ecebff2ec6ab0a42c541420f26af0c069ffd0ec6]
Former-commit-id: 476e50d57067859cbbac27afd6c2cd73b7b6cb90
2018-05-17 06:20:09 +08:00
nisdas
4e5c535426 sharding/client: Fixing Tests (#92)
Former-commit-id: 85e659f3ea43c983f8df54ab8a3150a560b2dbf8 [formerly 2c0a181754a07dbda855d1da8042a09c9e9a040d]
Former-commit-id: 0198766ea1336efff88b9292b6ee1b53ef86b000
2018-05-17 06:20:09 +08:00
nisdas
1df5683734 sharding/client: Adding tests and modifying utils(#92)
Former-commit-id: edbf5bd3d11b46f463bf26027178fb7d06fc13fb [formerly 73e4692d8036976d224e22e48423bf8cae9a95c1]
Former-commit-id: ca76a1ecf0fda4f66f0330277384b35ba501e3ed
2018-05-17 06:20:08 +08:00
nisdas
2026d42eec sharding/client: Adding new comments to improve clarity(#92)
Former-commit-id: 1a7affe598d4b93b0983efcfdfb48d2d6b649bcf [formerly 7ec6f8bd96042285b491d7c884d4da1c8d54674b]
Former-commit-id: beef30370be94aeb3915adee8daa75985f2df789
2018-05-17 06:20:08 +08:00
nisdas
1f341bee87 sharding/client: Finish changing Deserializebody(#92)
Former-commit-id: f4afd07be086b843f857febbe127396eadfa0406 [formerly 5c8f51b8bc4d0d21e6a44bcbe5f946d051a2c9b6]
Former-commit-id: 122da75bb554d464975c13172be8d84f6a693ec0
2018-05-17 06:20:08 +08:00
nisdas
2cf1bfc2b7 sharding/client: Make serialization similar to JSON marshalling(#92)
Former-commit-id: 4d236b8b6a8b9d242beaeb2c035d0fae25fb4f63 [formerly 0a9b7aa774c9e6175b6fe70859c7c861bdbe6332]
Former-commit-id: c7e62ad5effc66da4603cccaf65a789712796f04
2018-05-17 06:20:08 +08:00
nisdas
efb8f3a80f sharding/client: Cleaning Up and adding errors(#92)
Former-commit-id: 2047d553c3226550d07852d91352ba5287b86f6f [formerly 1257adb782b252461bb9f4b176e1d7f0a09f7b92]
Former-commit-id: 75ad116eb88c6d8e0e94de65ec5c137d47e6429a
2018-05-17 06:20:07 +08:00
nisdas
1129d94303 sharding/client: Adding Main serialize function(#92)
Former-commit-id: abb3b3d0213daf4b6e84c880cf202bf91d04d086 [formerly d3e6aad05cba1272ab84fe9c03140d3d3b092584]
Former-commit-id: 1185e61d50a11f7fa15e986521f91856cb1df3d5
2018-05-17 06:20:07 +08:00
nisdas
256078b48e sharding/client: Fixing deserializeblobs(#92)
Former-commit-id: 956c46610107382fbf8d6447f10d47290afbeb79 [formerly 3387c9666b09f695bcde26cc236df3db03c453fa]
Former-commit-id: 4cc2bc2ac8ab198eb7fb99c773fa34d09b8b9acf
2018-05-17 06:20:06 +08:00
nisdas
e88c1343d4 sharding/client: Adding deserialize blobs(#92)
Former-commit-id: f11427ff5b305c1f9ebb30b2436e75b5ff9a9dc9 [formerly 3def7d93a525e3bb8348de8fb24ad9d828580860]
Former-commit-id: 6dc530e57dc5a35ee50564ecc082d035f6ceead1
2018-05-17 06:20:06 +08:00
nisdas
92c44d455f sharding/client: Change to serialize blobs(#92)
Former-commit-id: c2dea5d8ba8c469a304a1855e1f262892b3ea0a9 [formerly 4d77a3e8815c3cd4803f4f785131c9aac86a7795]
Former-commit-id: 8b5d6485900122b46d88418a7c7f8ddabae6dd09
2018-05-17 06:20:06 +08:00
nisdas
b5454d2dca sharding/client: Add conditions for terminal chunks(#92)
Former-commit-id: d74291a1c8ce13da79aacb3e91c890554ef0c704 [formerly 03bf20998003e0beb9cc3f611d5023720c946369]
Former-commit-id: 49ebefec9aacaff995e178112504b5f77c71140f
2018-05-17 06:20:06 +08:00
nisdas
3b13a44f3a sharding/client: Adding Parse Blob(#92)
Former-commit-id: 2ae72f191f84b88ab28a0752130b591c01b7a2fd [formerly c9a496eb646c098a1b46b9880d8059a094b93574]
Former-commit-id: a1ef1e7d5f2d880c6678ca725ecd4837349a21f6
2018-05-17 06:20:05 +08:00
nisdas
ebf7a7c37e sharding/client: Changing Validate Body(#92)
Former-commit-id: 155ec90649a1226fc3a3f442014bdc29dae9d62f [formerly fe02510a1af1287d54296a4051745b02fa1aca3d]
Former-commit-id: c5d489d9e640a3460c32136809016c0a9fb970ef
2018-05-17 06:20:05 +08:00
nisdas
f2e110680d sharding/client: Add utils.go for blob serialization(#92)
Former-commit-id: 553671c1f1e1e1cb50c16fce53ecf0a5acc0595c [formerly 454f56eb8103b7a2b341ec2852c849611c55a1c0]
Former-commit-id: 1a8305e422b5dcc1173afc0ed9d81c49ce426eb0
2018-05-17 06:20:05 +08:00
Raul Jordan
a42b4f7bfa Merge pull request #123 from rauljordan/upstream-changes
Merging Upstream Changes and Ensuring Tests Align

Former-commit-id: 99ca9ebed3ceae0c521b4a90c9c99715b296ca77 [formerly 41fcece8ed797491096ea19c4f5a910d9c652185]
Former-commit-id: 566a0ebc90e3992412106fc578738e51e6807043
2018-05-16 17:29:36 -04:00
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
Raul Jordan
fc1fb315bc sharding: replace StringToHash and StringToAddress deprecated methods
Former-commit-id: ff398a7f1b661f52735aceed6cd2d52ede02fc49 [formerly 42fbcc22fc08bf6d14b7a783adc9aecfabc83c60]
Former-commit-id: de4aa4af63aa42bced0c592b6e8afec404361022
2018-05-16 16:51:45 -04:00
Raul Jordan
b9cb8a8194 sharding: fetch from upstream but keep travis the same
Former-commit-id: 75db983a69c7061e250b2756e5917ac5dd1ff7d2 [formerly 6e8e11322b931a70b5f2db8b5413c945834143fe]
Former-commit-id: 8de7b4c58f421e45bff2f0af167e2f2a27ddac49
2018-05-16 16:44:56 -04:00
Raul Jordan
8e4abb014a Merge pull request #100 from rauljordan/shard-type
WIP: Shard Chain Type With Useful Methods for Notary/Proposer Clients
Former-commit-id: 6e12288539871b6e5077f21564a3161dfecd4c0b [formerly d7f0bdf36f28b2c1c2ae703d50a25b104d611150]
Former-commit-id: bca386803a208c1a0b8e907b0da846200755a00f
2018-05-16 16:42:19 -04:00
Raul Jordan
562db195cd sharding: return val in SaveCollation simplified
Former-commit-id: 89be5b180c196bc4b965de200b4494abd5692f33 [formerly 9027cf7a563279b1fa6992732a3c2b2b5ca4c83b]
Former-commit-id: 1303c98eca9ab5da08990c3371208ac4b6217cd3
2018-05-16 13:28:50 -04:00
Raul Jordan
564ba9289b sharding: fix return vals
Former-commit-id: a2f65331fc92769379c1ccedd6627b60fe9d2f09 [formerly 09821d41c9080b71c58fc875af58db8865b2790c]
Former-commit-id: 451cc1b39255039700a92b6f4c0bd6c7b5966b1f
2018-05-16 13:19:07 -04:00
Raul Jordan
3a94b098aa sharding: remove .String() from big.Int usage
Former-commit-id: 67861149005f0d5184d4d1c7658796a99db307b6 [formerly 81952e0c4bfd9f4048b6c8feaed9d3189296c467]
Former-commit-id: 4b6ba49e85a83a39e82bbab42aeedbdf7521408d
2018-05-16 13:17:08 -04:00