Commit Graph

561 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
Terence Tsao
9969f7e9bf sharding/node: shardDB is a property not a service
Former-commit-id: 7d85080fc0d3b82a0bcf5b60546f22d0e78cd9e3 [formerly 7b659786136a9451a7980cb447128ad4f059efd1]
Former-commit-id: 9844823e588bf0d9127fb4019bd66812b6527411
2018-06-08 13:15:18 -07:00
Terence Tsao
86b349f137 sharding/node: start integrating shardDB to shardEthereum
Former-commit-id: c2faefc69d8784c25a1416e274128402456e4382 [formerly 88a632e96bf12d02470545933b0ee9ac90622b23]
Former-commit-id: 6a33bb1dec693439b459f6399dba14f58a9e1723
2018-06-08 11:24:06 -07:00
Raul Jordan
18ccccf21c Merge pull request #149 from rauljordan/node
Refactor Sharding Node According to New Design

Former-commit-id: 370719264192a27347680f63be59cf6f835fca5e [formerly 3a57dd9fbd8cdabf97db83a5031340bc93a838aa]
Former-commit-id: 56ed9e58dc958204e09bb2888e424dc4366f5199
2018-06-06 15:15:42 -04:00
Raul Jordan
d3d509fcda sharding: info level comment
Former-commit-id: 14cb9f40fba2121c04dd35b32e4871abf295b2cf [formerly 41f30d808a5b326175fc1ca2cfe6c21b507518b1]
Former-commit-id: 633f9a8216310ac16a0070f0b5eeb33fd99014bb
2018-06-06 14:53:24 -04:00
Raul Jordan
5e73a0705f sharding: comments
Former-commit-id: 96f657456147bf7d982d45af46dfd49d2ce47444 [formerly 7c21efd8264d66e80b6b3749d271c0ce57229a76]
Former-commit-id: a11ac85e2123a173dfb38ef7ae46cde9ec990fab
2018-06-06 14:46:26 -04:00
Raul Jordan
af35efe4a3 sharding: rm todo
Former-commit-id: 6e934460d846f8ce8b9c5115391b8fa9c6d857cb [formerly e9712cf6a9d76c3c0140888f69525e7f37f555e4]
Former-commit-id: 60cbb34750ac612cb5edfc7bef99377640674d08
2018-06-06 14:39:59 -04:00
Raul Jordan
005409dd49 sharding: fix lint
Former-commit-id: 4da1be96e52fb098581f975995c116d8812b0361 [formerly 2202c858dda5d35aaac4931b637f43569153f507]
Former-commit-id: bf9ee6ba99a21cc82b3e044d50b109e850db1560
2018-06-06 14:22:48 -04:00
Raul Jordan
c3e9750309 sharding: remove error from close and log on service fail
Former-commit-id: d26cede2713f223996de9dccb869fccf40d43f97 [formerly 1808d0364a2adc7bdb55965290379a03da2046b3]
Former-commit-id: 630fde9ad0b91586ab55e58ffb8add50219e043a
2018-06-06 14:04:00 -04:00
Raul Jordan
e17900ac18 sharding: graceful shutdown of all services
Former-commit-id: 47da16d4915e10d9755d641c5c4102eb8c90beed [formerly 0b3e95b7037fb7c3e00b0460e615cff64ac1844f]
Former-commit-id: da75e9d2766922d6fe375f8770795f2d6dde113c
2018-06-06 13:22:21 -04:00
Raul Jordan
eca02ffa99 sharding: fix lint
Former-commit-id: 22d4a531da13984b7b8eb64c186f9102a3344f78 [formerly 60f4fc1b8ed37d5e6b1166b55f9505f197b72be5]
Former-commit-id: ce8b543acedf4719a525c5704ea36c551448a311
2018-06-06 12:10:42 -04:00
Raul Jordan
27d8338c1c sharding: rename service method to retrieveservice (less confusing)
Former-commit-id: a09da925434f3644338fb7ee59c96cf558e3c1ec [formerly 0b465fde9ac197d4cde232f4fc2f177141c2c621]
Former-commit-id: 75a1eaf42978c9c2b035bbe57949195c69615b63
2018-06-06 11:12:03 -04:00
Raul Jordan
cb15bac394 sharding: stopping sharding node log at end
Former-commit-id: 48ec046f14bc75976d3ef78403226c07a5a34ca0 [formerly 7d36228f2165a1fd9ae8b4edab7d2709df85e1f5]
Former-commit-id: 6e6eb9a09e9c67a7bc92f929e01ae010726591d6
2018-06-06 11:07:49 -04: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
5c68bfa381 sharding: nicer error messages on service start, stop problems
Former-commit-id: 0a8cf796dae889b4ee1a49d71d22a668905e109b [formerly e3e4a8844b1a0544b927d0ebfeff1b735e9ec957]
Former-commit-id: 89f0dcc554cac78900b43f64924f3fcea967f541
2018-06-06 11:04:20 -04:00
Raul Jordan
ef368d2b2d sharding: address review comments
Former-commit-id: 33820dfb5ed6a3e04e924d5c7cdf454ce4385780 [formerly 1c839832bf48281d3067d90e9a15d2cacc5d17f1]
Former-commit-id: a9d747b7d7bfecb5e8718df6f6ed54161f34b759
2018-06-06 10:30:43 -04:00
Raul Jordan
5bfb1e42d9 sharding: added interface tests
Former-commit-id: 69cd77645d47bcc4eaa6f2850e1741afc29e0958 [formerly 6211c61f013386b5eababade9d7bfeafcde69b63]
Former-commit-id: 1cfc772c16423123718ce36aee06242e09a4bca9
2018-06-05 22:38:16 -04:00
Raul Jordan
12d35d3e92 sharding: fixed runtime errors, addressed review comments
Former-commit-id: 941b7f13b58758d0290481b23fae292fee7d078d [formerly 020042b380b63527163c41a37a14022e61f844c8]
Former-commit-id: 183ed3603fc3fd0cbf964ae468acad4fa850f0fd
2018-06-05 22:03:58 -04:00
Raul Jordan
581883bd9b sharding: fixed import cycle
Former-commit-id: 7aa2c458e37fe4fd5b340d2da0bbc7fa44778258 [formerly e71c11cd82b059dfb0d589e42fdba763cf9cadf1]
Former-commit-id: d02e7567fb5bd8c08fed0e9735f08dab95544b2b
2018-06-05 19:03:15 -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
Raul Jordan
8685b0a201 sharding: register p2p and txpool in order
Former-commit-id: cd4ebad4a45c3f02d9fb14134bdcd3e85187241e [formerly 507ca92b4728a695d67dd416c71b77f0fa4d33e3]
Former-commit-id: c1350c2143ebdfb4e17f19f7ffb77351a854db91
2018-06-04 18:02:34 -04:00
Raul Jordan
1057d8bf6a sharding: fix lint
Former-commit-id: b57c5bfe397d13556f34ea1884482b2ca4bbe975 [formerly 849061b6ea1ceac3688f3f2085ecf626c7e5f006]
Former-commit-id: fbab77903733ce35bb82e3684ed2ebe020431c8e
2018-06-04 17:25:59 -04:00
Raul Jordan
9d584d334d sharding: fix interface errors
Former-commit-id: 3714c5c46fdeafeaf1c0d64f70989fdd0913fce6 [formerly 1f9ff85f10520e409e787c6be644682ea8b4bb93]
Former-commit-id: 21214d113530fe5ef67961358a291f7a5ca974b8
2018-06-04 17:19:16 -04:00
Raul Jordan
fc40d603c0 sharding: define empty p2p and txpool services
Former-commit-id: e95f66b509da5b24054415c15642fd952728a193 [formerly 1f8c4e6ad036cddb162a5588696d44d648f7d5eb]
Former-commit-id: 2897e7c38f227a4f8cd0456cb6fc904ecddeb71f
2018-06-04 17:10:59 -04:00
Raul Jordan
cbfdd4807e sharding: register actor services, modularize services
Former-commit-id: 2513b3150392096adf0ac8e43349a1ff046f941c [formerly ddfe2a5c70a4b28c60d4321d87dc4a2a512fdb72]
Former-commit-id: 07ffa1c5adf2ab34760d975110d08ddabf2c3d95
2018-06-04 16:34:48 -04:00
Raul Jordan
0d85d18726 sharding: implement node register func
Former-commit-id: 808d9952e0dcb15c191ed4cd0ae6274e402beb46 [formerly 1b4c863ebccfed99d018b63f15a3df3de653ff50]
Former-commit-id: 83ca14b18bd098667452d0c563a336a75a4f2f5a
2018-06-04 16:00:47 -04:00
Raul Jordan
cfd48c4fdd sharding: add service constructors and modularize interfaces
Former-commit-id: 5e6b6a977966e9a3bd351aad0e8d4bc0aa65c4e1 [formerly 5412223a4474b3dc865e58ad9c07e460dbc90e71]
Former-commit-id: ef999d3bd806a580932459338fc0920473ddc0f2
2018-06-04 15:58:02 -04:00
Raul Jordan
28d9f553ae sharding: fixed tests to pass with refactor
Former-commit-id: a0cee6739e623199f57752272da9b2372be856c9 [formerly c016afddd2cc56db8b47e161c444d47fe7bfa2f2]
Former-commit-id: f8d790ea8040c67641f6241a7c9886e8983352bf
2018-06-04 15:31:42 -04:00
Raul Jordan
e24440332b sharding: defined creation of shardethereum
Former-commit-id: b027414132b6e145763d4a09b2860f65f30b6001 [formerly 087007d33ea99af703886fdbce7aa600b678f761]
Former-commit-id: d7a2ef4c822ca4779451b32f98ab9eae47babb6e
2018-06-03 19:24:31 -04:00
Raul Jordan
61c6827867 sharding: created smcclient service
Former-commit-id: 2a1e8638990672fbac754cc1fb8a65dfefe69a11 [formerly 5695c392f8b1b42e980c5b4e0992ebafe782eb5b]
Former-commit-id: a6c753b3843409f72472fdd0f41e5af401af8fa3
2018-06-03 19:13:09 -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
Raul Jordan
dd384d3a22 sharding: refactor based on new design doc
Former-commit-id: b2defb3e277217d0d5bef86f1d4078668791d251 [formerly 6a6bd5c309442805ccac942325e0feef69dd17ab]
Former-commit-id: 2a26568478ed072db7c8e299eb40644b1c7c10d2
2018-06-02 18:29:35 -04:00
Nishant Das
d34bd2192c Merge pull request #146 from prysmaticlabs/addr-logging
Sharding/node: Address Logging To Hex

Former-commit-id: 54982880241beaa5dda8e582c26ee3b906d40c09 [formerly 73cc9ef2e632f631a962bff6ccf7bad26f57108d]
Former-commit-id: 44413819667020e1e3e1e3a1e19df4ac07dfbec8
2018-06-01 14:11:32 +08:00
Raul Jordan
f945f3f447 Merge pull request #145 from rauljordan/contributions
Quick Fix to CONTRIBUTING.md

Former-commit-id: ede007aa91e1641f810f25f8dfe7a0f534b6be23 [formerly 9e030d2a65a0f6d06e78265bd8a75dc581354554]
Former-commit-id: 945120d03dec0ef4016586ab0fc056421e58edbe
2018-05-30 15:19:48 -06:00
Raul Jordan
656d2a407a sharding: quick fix to contributing
Former-commit-id: 8ae571908e4910611b7416ee7d0a803b7dd17e25 [formerly 4609c6b161234a8247e4fd8daf650726149b29ed]
Former-commit-id: 73b6e8882138f9fd9908b9c74aaf9bbadd8ccc6a
2018-05-30 15:18:30 -06:00
Raul Jordan
53206f0f04 Merge pull request #142 from rauljordan/contributions
Editing Our Contribution Guidelines and Required Readings

Former-commit-id: 774a3428e87d58b7fdccc70e8cd79f7a9c9aadb8 [formerly 0bc8db0f837e463571b1a421d059f94ba55bb4e2]
Former-commit-id: 8f4b5543410bd073fd96ecbc99e50868f31a8895
2018-05-30 15:06:54 -06:00
Raul Jordan
a278cceb96 sharding: merge master
Former-commit-id: e182bb374419163f7e971e18716ac31291d6113a [formerly d796b1730d08d8eb56e3ec77f14f895c2bbf1d0f]
Former-commit-id: 028f1a8904ae5830db3a1d3d7314c4e68ad834f0
2018-05-30 14:50:22 -06:00
Raul Jordan
20a4cebe28 sharding: quick edit
Former-commit-id: af1c64a812994fd7936c074f2a836273ed3134e8 [formerly f1b83e7497cec5a4863b3d5c23e7f9781ae18d9b]
Former-commit-id: 0f5b82d214af598f381c39bee7f50a5a04a65f26
2018-05-30 14:49:08 -06:00
Raul Jordan
50fb16ce74 sharding: finished readings.md
Former-commit-id: 34c19e6feb370e126054e14a7919a421683dd0a3 [formerly 0140dc0971d34c11e5d82a4ae11a792ff4291626]
Former-commit-id: f7b5a3716cf3a5d3a1bf2947cbaec17a2d702af4
2018-05-30 14:47:44 -06:00
Raul Jordan
820b90ce72 sharding: added all go resources
Former-commit-id: c2f3e3609260fc0afa8b4e8e44122bb7415bd004 [formerly 30b1686359de4c4cca677f1f6be496e35120d037]
Former-commit-id: 79dedd7a4854788d059da0152971279b17d450c9
2018-05-30 14:32:12 -06:00
Raul Jordan
a7e7f72fb2 sharding: added most resources
Former-commit-id: 3a3ec310f8d12b7e10be97a3f93d0b61f22ab77e [formerly fdb569cb941f80c0f060518f316c6862e2b0eb85]
Former-commit-id: 6f88829c185ed36734b1c556903f992f2a133c18
2018-05-30 14:09:56 -06:00
Raul Jordan
589620f335 sharding: added links to readings
Former-commit-id: f17d7ccfc9a49d43041d30705724840fff38f804 [formerly 8b4b1ca55135b095e529f840358a08a55d458d52]
Former-commit-id: 4f8c8b4034abbbbe2136f69a4932067620ec894a
2018-05-29 17:59:41 -06:00
Raul Jordan
81d7334660 sharding: edit READINGS.md
Former-commit-id: a7e15ca8d1c5d746241c242c0534db120c1b3b81 [formerly 34f29f9ae62ad489b21fb69357b4d66e3b4000f8]
Former-commit-id: 6455610454d092cf991e7983609db490ff381217
2018-05-29 16:42:44 -06:00
Raul Jordan
2625c8728a sharding: added contributing.md and readings.md
Former-commit-id: c34ad3ffa9d2f5a92aab53f93ece82a1e6a15657 [formerly c10eec7a57773a322c996fb6275af6053f3d0a06]
Former-commit-id: b3dd4cc565a35ed4310d36ed20b158d3f6dad93e
2018-05-29 16:26:13 -06:00
Preston Van Loon
689800d065 Quick fixes (#141)
Sharding:

* Sharding: add actor flag to sharding group for app help

* Sharding: ensure rpcClient is not nil before calling Close()

* Sharding: revert shardingcmd.go comments

* Sharding: more address Str() fixes

Former-commit-id: 0b3d8b73ac1b20eb5c018a71be1d935a1fb860ef [formerly 6cd1df472713e95f6b9f8a0a7b6bbd88a5dd2ca2]
Former-commit-id: 90c7e1a70d46c1f889576a7f2f253a02414c3654
2018-05-28 20:32:10 -04:00
Raul Jordan
25eb11f30e Merge pull request #137 from rauljordan/shard-storage
Use Persistent Key-Val DB for Shard Node Collation Storage

Former-commit-id: fc2ffdda9a790ff200448091937bad71c391ba5b [formerly 9df3f94fe721b5d75f2a4b27f752477af598b719]
Former-commit-id: c1eb4f1c6c9557ee9b7730927ad76343bd929c24
2018-05-27 17:40:25 -06:00
Raul Jordan
90d376e467 sharding: merge from master
Former-commit-id: ea1b3440d83392728508844f72eb31fdbbf43923 [formerly 1513192be18b4012f429efbed8c5ab1ab7d473ed]
Former-commit-id: 388f490d16d8365ff303356710053ee72440c360
2018-05-27 17:04:41 -06:00
Raul Jordan
50811bcd8f sharding: fix lint
Former-commit-id: f820d6e22ebe00f68cb7b6a210d9a2a4bb6ee027 [formerly 3d492416a550b77a7cf5565e54588310b758bb40]
Former-commit-id: 6be1b4da840c8c77a227043fef7fe655f7ab2ad7
2018-05-26 12:25:43 -06: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
84c8c58c3d sharding: revert master changes - travis was broken
Former-commit-id: 726c06eb4248536e23b143f8e0af51cc91a8f19f [formerly 305291115def673a9b862d4701da1f1d6b4439d4]
Former-commit-id: 643294b138f2ff848b32319f8e60fad93e81095b
2018-05-25 20:16:29 -06:00