Commit Graph

25 Commits

Author SHA1 Message Date
Terence Tsao
035d0fb669 sharding/node: use ethdb.Database, remove database.ShardBackend
Former-commit-id: 44c0c5682c0296d94943b354171e69b4c8cf5312 [formerly 54da5cb45b098f0737fb3c37964e612dfe93c751]
Former-commit-id: 5d84d3c5038a01c4108e519d5a5c69033ace8ae2
2018-06-08 14:45:26 -07: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
Raul Jordan
54cf3c9a4f sharding: fix comment
Former-commit-id: 58eb9982deb7122f6f1890f2e25aeb8259cb8d76 [formerly d28feb35046373f36c3be3543156e1b12c7c595f]
Former-commit-id: 842b7609b844df8e282cce43f13a1c94515933af
2018-05-25 21:19:04 -06:00
Raul Jordan
aa8734ea56 sharding: refactor all tests, travis passes
Former-commit-id: 979b3f3f7424ed9c2855f37acfbb36e1cb05bb3a [formerly 638fb7ddd3e39f136d5d1eb32ddc01d23bac5729]
Former-commit-id: 47be397ed0173b73eaeb2ffb7b194689e76be7a5
2018-05-25 09:06:39 -06:00
Raul Jordan
b813c4b33e sharding: refactor shard.go for new interface changes
Former-commit-id: 7b507d71c2e1dd4b19b5d9895458fb090b6ca6f6 [formerly af227af2ce595eda9cfb0a7b930c66654ce9cc46]
Former-commit-id: 5fcc1fad7f3a85e05d78818e1abe37408b78de9a
2018-05-24 18:09:42 -06: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
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
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
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
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
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
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
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
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
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
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