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
Raul Jordan
8aa993da5b
sharding: fix broken tests
...
Former-commit-id: 22b585bd87ebb8c63808c59d0ca249d891b100c3 [formerly 1de60c6c145e96f61cbdd2d969632e2f0732568a]
Former-commit-id: 57769a0dbc37ced79e98b2c7c418bdf6ade49f93
2018-05-16 13:15:36 -04: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
8f731bfe28
sharding: merge from master
...
Former-commit-id: 946a6e98f66721064928bdfbe3a357fa9310c1a8 [formerly a3d8ebc4a85ef0d677440b55fa1445607265350a]
Former-commit-id: f5191ed0d7323c8f86b71c98ecd4b3bb1ba2c365
2018-05-16 09:50:30 -04:00
Raul Jordan
9b3a32221c
sharding: use .Hex() instead of .String() when logging hexdigests
...
Former-commit-id: 09695f12e61a3f25fa1830a445861119d236078d [formerly e79627c2af202768419df470cdc49e1a3f6cb826]
Former-commit-id: bbda4b36cceb25e765c05299d2ce96b7a6e4b275
2018-05-16 09:49:41 -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
b6949f8582
sharding: eliminated assumptions about db implementation
...
Former-commit-id: d17f7c367ad0c83516db37d7488eda3ad2ea3f59 [formerly 1fcd7a5bad4fe2c2dbaa5e4e200fd688227fd725]
Former-commit-id: 5d19cd72168913d681518d106e0ebe1bb2130d1c
2018-05-15 15:23:23 -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
Terence Tsao
591e4e9d49
sharding/contract: merge with master
...
Former-commit-id: f11d1a5d916236d9801f1cf53bb79d9814eebcb3 [formerly a0bd58da12e00a0a66cf27d8906d3dbbeb88768f]
Former-commit-id: 5c7f2c0e50def98ec052d7c413f83c3b4fb1ed14
2018-05-15 11:25:04 -07: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
Raul Jordan
f0fb634c89
Merge pull request #121 from mikerowehl/patch-1
...
Just an awkward typo
Former-commit-id: 8002c0ac7e543bc616e496720c7444ca56cb558e [formerly f50190a188cbe0a6aac4a00eacd371eb3cb7ade2]
Former-commit-id: 90c3e21cc6a8e387c7602070eacd49012ae4524c
2018-05-15 12:09:50 -05:00
Mike Rowehl
8535c0586a
Just an awkward typo
...
Looks like a section that got revised a few times and had an extra word left in.
Former-commit-id: d9b86c256ba77e3dfcd2ea435eb6d934978285f6 [formerly cbe38de2b3b5b2a665ec0a5c5f713f5ba730742a]
Former-commit-id: c6e21757cae7a0ab2e70c31e4d838b6ced993482
2018-05-15 10:06:11 -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
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
Terence Tsao
43e48290dc
sharding/contracts: merge with master
...
Former-commit-id: fd5bf9ed3f541734c2b92363468afc75eafbee47 [formerly 3b4c6447c9c673a5d58242db4c9bb8f7fc9c4221]
Former-commit-id: e438fd2911e54b652e726d1cace5d0ad640e563a
2018-05-13 16:29:21 -07:00
Terence Tsao
8bff6099c6
sharding/contracts: merge with master
...
Former-commit-id: 251eebf6cb46497e3afda66e0496ebd04593a741 [formerly 3399601d0fd7263f99ad2a6c0e9935e1ad0139a9]
Former-commit-id: e92aa0f01cd90b73684d5f3b3d8b127ae5130b1b
2018-05-13 15:53:52 -07:00
Terence Tsao
16c5158cb9
sharding/contracts: collator -> notary
...
Former-commit-id: baa704eda89c6f51e8a8419550bd1f40ef378625 [formerly 277726a6ee2d899ae2f9cc428213205531356d0a]
Former-commit-id: 8ef9b8fe4bdbf4e0f7591c458b4cb7f37b81db61
2018-05-13 15:49:06 -07:00
Preston Van Loon
5359cf04a9
Merge pull request #118 from prestonvanloon/fix/already-deposited
...
Only deposit as notary if not already deposited
Former-commit-id: eaaacb92c2f79f4664279a3bcc5973ad89241b42 [formerly b95f0e744d05df2590d868ed447fb2d8dffbceba]
Former-commit-id: 0d4c692f25a765f1e8529cdbc95d4593aeefd0f7
2018-05-13 16:36:59 -04: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
Preston Van Loon
6de61b5d43
Sharding: Add check if already deposited
...
Former-commit-id: 32d3ec5c6bcbeb8e77aa7873e395e2b2cd362571 [formerly 623faf56f979a6e3f7bf4f903aac5c967da40dd2]
Former-commit-id: 5a60c62411845f441bca4f0a5540cf79ad9e0658
2018-05-13 14:23:20 -04:00
Preston Van Loon
4bfb23a5e7
Merge pull request #116 from prysmaticlabs/fix/deposits
...
Only deposit when --deposit is present
Former-commit-id: 731934362ea81e52957e95cd9b7a68e3805675cd [formerly dfef4cf8fe3d96a831b9fdbf3503db651ca67db8]
Former-commit-id: aea665ad8e8fe8642c8cd2c3868087a111c74029
2018-05-13 13:56:47 -04:00
Preston Van Loon
133026feef
Merge branch 'master' into fix/deposits
...
Former-commit-id: 476972e0c3a1c1ec858cc77fbeb1f1f74042b177 [formerly 658337b5062f39fd2ab8e31de09357c29a80ab49]
Former-commit-id: f47b6700d0c3756b6f0a51ee61f779611a48e66c
2018-05-13 13:23:20 -04:00
Preston Van Loon
f1d8accaeb
Sharding: added function doc
...
Former-commit-id: 0c20f0ed1c23a9b72620db14470239f71775ab82 [formerly 57d3964723de6bbd16dfc289730665aab89b60e8]
Former-commit-id: 83cb53bfc1eca388184d2d72910831d11181f14c
2018-05-13 13:21:21 -04: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
Preston Van Loon
5c7ce3af5e
Merge pull request #113 from prestonvanloon/fix/flag
...
Add sharding flags option to usage.
Former-commit-id: 172a2e8e071fc49557211c264695cc877a3cb537 [formerly dbe63e90a3b1eec1042f5bfe37dec22e6531f562]
Former-commit-id: 71aaf4a610d475f3e1aab9218fcc6339b41c96f9
2018-05-13 12:39:21 -04:00
Preston Van Loon
ce900f9bd7
Sharding: check flag value
...
Former-commit-id: f1bd210017d236d1ebafdd9b404be6b4731c75ed [formerly adc011704641d4830e6e46acbc6b33c2eb06ba92]
Former-commit-id: 0071f67a01cff53eaa8ba8a888aecc16f9150b8d
2018-05-13 12:37:58 -04:00
Preston Van Loon
6df9fddf7c
Sharding: fix error msg
...
Former-commit-id: 6b79f8caeb23aa405180a8f776eabdacbf35f765 [formerly e5d0d702cc93fbd3c13e0abf09606c82a37734ab]
Former-commit-id: 325a592978a92840d74844fae594bc927da8af4b
2018-05-13 12:35:28 -04:00
Preston Van Loon
a4a0ca98dd
Sharding: only deposit when --deposit is present ( #115 )
...
Former-commit-id: ea182c0890138082396b4d06d543a9929efa73de [formerly fbb923ff61f07a4e2cd6022069d7b29fca244c02]
Former-commit-id: 6b9769d4250599a6720cbdceb3e41459d7b1b5da
2018-05-13 12:33:29 -04:00
Preston Van Loon
69841d4df5
Sharding: dynamically load deposit amount from config.go
...
Former-commit-id: 14b48ff7efe688e4ea126db301a6d23a358060ed [formerly 77862c2e72e4f725a0ba7115ab16cd5f0b9dd774]
Former-commit-id: 359cd27670f304baa484b9dbeccff29b66accce4
2018-05-13 11:59:24 -04:00
Preston Van Loon
90440e97b1
Add sharding flags option to usage.
...
Former-commit-id: 53d8391434e77b68e29134d9f4cfaffa1ddd0c72 [formerly 32440329f168545310f7ee26c24081cb052673f4]
Former-commit-id: 300ea5da5ed7922287a27b56306def13594e41e3
2018-05-13 11:03:59 -04:00
Terence Tsao
57f5595eb5
sharding/proposer: beginning addHeader test
...
Former-commit-id: 02b04a635b1f54c6a6bf76bcfea779a83f0439e7 [formerly 0741baedf7ca864162bf61796242c78adba4cc60]
Former-commit-id: 68fe8324ba9bd1f03355632262be1d1e47162505
2018-05-12 15:54:17 -07:00
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