Commit Graph

2030 Commits

Author SHA1 Message Date
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
Eli
a68805cd47 sharding: chunkRoot based on seralized blobs across package and tests
Former-commit-id: 7f561afc7750fff716db08162285d40eddb6567e [formerly 80e9bcfaa3de4bb03ec2dc74eb3f419dd0796b23]
Former-commit-id: 95aec9183147ccaa08bc2a2f001a19c69cbb6bd5
2018-05-27 15:03:09 -07: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
Terence Tsao
94cd02a7c8 set gometallinter deadline to 10m
Former-commit-id: 203373bdacbb3744d87b2129e87e3810118a7799 [formerly 5cb84fc36db4bc7ed52d321aa7e65b0e9da3fc29]
Former-commit-id: 511cee5a295c170244381974c4be19270bc77f91
2018-05-25 15:22:30 -07:00
Terence Tsao
bac0c74b6b sharding/contracts: hash digest instead of byte array
Former-commit-id: e6d1149f737e0c21b8ef45712c30265ee699ec96 [formerly 72863268f45b7ca71d9990422cc3bd5b0a75b24d]
Former-commit-id: 9059a3971e64abda1939a5aaa6fee8b2e8e7e605
2018-05-25 10:20:51 -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
Raul Jordan
1c0d4e848e sharding: tests pass, services updated to include shardDB
Former-commit-id: 8b8b695ddc0a39bfe6a536fd7b7f40d74c4105da [formerly 829d481af0eebd1647a34006018761e3e64c5e3e]
Former-commit-id: 1d607fcb8fae1327c346bdf3557ec40a8816a09b
2018-05-25 09:52:18 -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
Nishant Das
2904a0a8f0 Merge pull request #138 from prestonvanloon/benchmark-dat-serializer
Benchmarking Serializer

Former-commit-id: 15e19fc351b301beea895f6f135a4bfb7d97c5ff [formerly 0fb1ab8e8ae8d8713f87d558b89e0718837dd3c3]
Former-commit-id: 4aa813f4fb23f61edeb4abab07b757bbaf8c578a
2018-05-25 21:39:28 +08:00
Preston Van Loon
8aa97e2c59 Sharding: 10 -> numTransactions. Oops!
Former-commit-id: 7cb1a1332b05a25a14f26e05c85b7a0e5ccc7f49 [formerly ec5c5da346eea40bbb7a88b43dd07b281a593898]
Former-commit-id: 58dc62b926658b526c0453c8f1cbe4a734b46317
2018-05-25 08:23:14 -04:00
Preston Van Loon
1274411784 Sharding: update comment.
Former-commit-id: d8b8e76e71595932e0ce5fd55e11c132cb11e515 [formerly 9a91d6d683d7a80af87a962caee6f3de000e5214]
Former-commit-id: 103eb788b04f38e11b1d1e21730e34cdce33be83
2018-05-25 08:22:14 -04:00
Terence Tsao
bd4671ad72 Merge branch 'master' into proposer-phase1
Former-commit-id: 986622f6488e88c2fa9a7d21ad7a077c3509766c [formerly 4d51a81a3bd60fb1fc715ad9ee9498ddc5f4aafd]
Former-commit-id: 0e82fa446ebb0a10e0bcba4a388421f39aa24c78
2018-05-24 20:59:59 -07:00
Preston Van Loon
9b1b5364c2 Merge branch 'master' into benchmark-dat-serializer
Former-commit-id: c5141aa4ab8fda76df681aa4492f45f8f8449cd4 [formerly 10d727317a3686293f25a25902ccb13494abb435]
Former-commit-id: dce91c97c0421ec6b0700235de4ef8a6453cf2f9
2018-05-24 22:15:49 -04:00
Preston Van Loon
bbb496f757 Add basic benchmark tests
Former-commit-id: 062c2a5bc8c849b13e72b49fd4896cf071355b9c [formerly 8af0305d687dc8588f4b7e15a869e58514a0d520]
Former-commit-id: c90e4d03ff42198f8b4579aa8c7d1adcda2a1280
2018-05-24 20:45:50 -04: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
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
52cc968c57 sharding: generalized shardbackend, refactor database package and tests
Former-commit-id: 806e44466e6484a0028fa39f364c2ee63e828983 [formerly 89d7697ddc25156265f8f49622a775c879e3bd88]
Former-commit-id: 8cf56c2760f2b9fcf1121a94967276c2a34cae58
2018-05-24 18:03:24 -06:00
Raul Jordan
407a112ec0 sharding: fix datadir and import cycle
Former-commit-id: 787b53e195a8ffde14f18139516ff510e03969a7 [formerly e7d0d7c28711060a8f2545de3218dd5a06e53e4e]
Former-commit-id: 0eb1bbe8fa5c9ad0b7a42d6c1043641ca3542016
2018-05-24 17:36:20 -06:00
Raul Jordan
08eb16eecb sharding: use leveldb backend for shard state storage
Former-commit-id: 2b402c6cce64f0c38d6d3ce48b4818c839bec19d [formerly e3ea64a3e937d89f586af617f3b899bb950e30b7]
Former-commit-id: ddd9e507e1e49758152ddf6e8827864df700dad7
2018-05-24 17:14:52 -06: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
Terence Tsao
34f9e2f0e9 sharding/proposer: merge with master
Former-commit-id: da82f7f8fd756168d99957ce555cf37bebb81209 [formerly 67e5e7376b69544e680dd15b67a2de159abd6ac9]
Former-commit-id: c502c63ad819d5fa914dec338f08898503679d06
2018-05-24 08:25:09 -07:00
Eli
e1f09b0a28 Merge branch 'construct-collation' of https://www.github.com/elihanover/go-ethereum into construct-collation
Former-commit-id: 558e80553d4566ecded16bd4b468532c1566dc14 [formerly ccd0ec5ea1cadf389e16b950e7aef7ee533897e4]
Former-commit-id: 92ad7d0e739dd1fe21e6ab71ce63156e140766d7
2018-05-23 10:52:19 -07:00
Eli
4bbaa445dd sharding: error and comment formatting
Former-commit-id: 0c6f6897381ef5f52ae05ad6152f8a55ffb94a2f [formerly b5088fd6f495eafe5f88d7aa2f7bc229bba61c66]
Former-commit-id: 213b3052de118e45c67000d510e91f185e057007
2018-05-23 10:51:54 -07:00
Eli
5dcf2520be Merge branch 'master' into construct-collation
Former-commit-id: b26de72a521781d88726cb71348efaf695e24b82 [formerly 5f78eb074cb5acdc15d7b974763ff66135ca1521]
Former-commit-id: bb9efa9307c5cfac60ae575fa2a46b061180f2fd
2018-05-23 10:36:10 -07:00
Eli
1c3387fca7 sharding: merklize body into chunkroot and save in db
Former-commit-id: 30327145ac18f8822bdfc661c50591aa33917547 [formerly bc513e68023723a4d848d2e773e77efeb7ddc9df]
Former-commit-id: 3da18bf84b164cab555f5bde8f3cf5ae19b18b26
2018-05-23 10:22:49 -07:00
Raul Jordan
8b19dd7ac5 Merge pull request #127 from rauljordan/client-revamp
Rearchitecting the Sharding Node, its Lifecycle, and Services

Former-commit-id: a19a24106107c24b665c2a76240c7841fb270109 [formerly f3cda0159b1e169c16b71d30706be5f116704828]
Former-commit-id: 6932c9317d72675159245c35741c9ee7f0aa422e
2018-05-23 08:45:29 -06:00
Terence Tsao
fd2124d6c0 sharding/contracts: comment for comparison
Former-commit-id: f1d5319758ab85bd5cfe63a66e0e8b960bab56a4 [formerly 4b80f9ccb7ce74b702774fc40af2e8cdf35ebb04]
Former-commit-id: fe5be3e1449f47bd73b50ea7db2418ec1dd1b16a
2018-05-22 21:20:56 -07:00
Terence Tsao
3a39e4a58a sharding/contracts: tests for event logs
Former-commit-id: 22adee68bad19ba219792eb4f7e91b89999979f7 [formerly 632857d61c53191ea4cc54a25706a4b2b14da39a]
Former-commit-id: 17bcf754eb5a14aeaa16407e8c1c0d90579cc209
2018-05-22 20:36:38 -07:00
Raul Jordan
f84244afbb sharding: return err
Former-commit-id: e199ba76199c07bac43d7cc77b77d087e20fcdd7 [formerly ee2cfe9c3b7f2c491ca5f66198aec401eed9c433]
Former-commit-id: 4a78b1b1326e235f5d83792b5176b69cf75c2de3
2018-05-22 18:36:35 -06:00
Raul Jordan
f2770fb5ff sharding: address comments, elim string references
Former-commit-id: 5d9f88908d94b4742424faa3a30862235ef4b073 [formerly 69a4d0eede29578ad645039d167f215b17224e32]
Former-commit-id: a1663091ce3d12e82c8fbd3d1ca5ffcffcad1c49
2018-05-22 18:35:03 -06:00
Raul Jordan
c67274b58d sharding: fetch master changes
Former-commit-id: eb5730d3bbaf8421bb98ee755a8df44044661b37 [formerly e28c9feb553a0ab8f90dd845b02e99956f369b23]
Former-commit-id: 223743f4df6ee8bc385d0de0855213089e699a64
2018-05-22 16:53:25 -06:00
Raul Jordan
5f6e966f35 sharding: address terence comment
Former-commit-id: 5ecdffa175208f5c469d850c0f8aae3344e3c5fc [formerly aa14c1974609d2c361888948ae3dbe072a5c9152]
Former-commit-id: 08420bb8112b9f985cd2d8facae3868471b82d24
2018-05-22 16:20:37 -06:00
Raul Jordan
a363175bbc sharding: addressed comments, linters pass
Former-commit-id: af2dcc65c4c3891a67d4dcf06946537a94901a0a [formerly fe1c017c119100b522a5edcf674f11a8edab9eca]
Former-commit-id: e4dbbeb226d9ead45c244717f56deae2edd29bf1
2018-05-22 16:12:02 -06:00
Eli
24ad83c17d deserialize into txn list
Former-commit-id: 693b5dc0d848efb05de8c1174cb3d9f56065096a [formerly d3c7277c15c7df134e6b7004ee0be82380b00fe4]
Former-commit-id: aeac3cade0d6483c259e02384063b1580781fab6
2018-05-22 13:37:39 -07:00
Raul Jordan
0f27660b18 sharding: using eth leveldb, interface mismatch
Former-commit-id: 127630fadb68deff3418e499f303f7eab16e775f [formerly 20bf39d9d62f72857512b505cfac7e122002c4ab]
Former-commit-id: d3baf1deac782fa9ee4bcceae658723b65d1b08d
2018-05-22 14:49:59 -04:00
Raul Jordan
8c58ffc333 sharding: begin shard local storage
Former-commit-id: 92fbba3d64ae6543595dd3270d5c3a75a8f54175 [formerly 5782e4c437022bb6827617ab05d7417afb9ceec3]
Former-commit-id: 030ef0240481a764c549d7cc323d30a958447413
2018-05-22 14:36:55 -04:00
Raul Jordan
08d4227735 sharding: edit documentation
Former-commit-id: de7390a5c315470d1e53b8a96d38b4f7d457c86d [formerly 796ab1e69fae185c6ea244ad286da862cf4c110d]
Former-commit-id: af1e7d1b1a66a6ab15df2a7d8641ad8249b6deee
2018-05-22 12:45:27 -04:00
Raul Jordan
404a1ddad0 sharding: address review comments, add observer package
Former-commit-id: 05b8804e0ba81e1fe22f7d930dc16f9e84e1c44c [formerly 52dd670a71f1abdfeb5dfd42c25b9f3ba9e64224]
Former-commit-id: 78bd95882d71a1cd28f442dac17fe8c1bbc34ccb
2018-05-22 12:42:49 -04:00
Raul Jordan
50f8a5199e Merge pull request #128 from rauljordan/database-mutex
Making In-Memory DB Concurrency Safe

Former-commit-id: b00313f451c42e8036a10f183e631e4fbefecbd7 [formerly ad726a9680547ce7249da09fda0fd1878cab0f0f]
Former-commit-id: aeaec82f64e64594282c4c18bd2151f4ab4b9c11
2018-05-22 11:16:12 -05:00
Raul Jordan
f091aa4d99 sharding: address review comments
Former-commit-id: afd2302f293fb8856c52dce5dc375372dfc310ea [formerly a2369694d644b8c76493f8ce305d80123dacd88d]
Former-commit-id: 0e13120a1c997bca6bf7a27fde6b5dc72592af5f
2018-05-22 11:50:34 -04:00
Raul Jordan
d5a991c2b4 sharding: made inmemory db concurrency-safe
Former-commit-id: 479801ca87e72986b2e635839c2e178cd08e7c8d [formerly 154c4c2fb0fa8dbaf24be0b8daf428c7f0c061b0]
Former-commit-id: 6489659f940b3737c663c40ff3f5385d001f5b97
2018-05-22 11:42:31 -04:00
Raul Jordan
2163001a05 sharding: elim unnecessary comment
Former-commit-id: df6bf42ddbd5880982c46a6f64231e1f7473e879 [formerly 1a1fb36d9bc05a67ddb652d3228614df612c00bb]
Former-commit-id: 0fe3ffb9fb2947015bcac53a75a440866884b3b5
2018-05-22 11:37:06 -04:00
Raul Jordan
128f661ba5 sharding: update documentation to reflect new entry points
Former-commit-id: 44863031370aaa67d3d9b546be33a67fc277f153 [formerly 55b0b3525b42778b71010859abc391f28fafc00f]
Former-commit-id: cf0ee0753c7e9f1a8d53510fc091c685cac7e0e1
2018-05-22 11:33:46 -04:00
Raul Jordan
ddc9f3cc97 sharding: merge changes from #124 in master
Former-commit-id: eb43aec855d5c71576a06fe69d446952c8b56ecf [formerly 5152e1a708b9ae6abbc2888a313829b9ef8cc626]
Former-commit-id: e4cb88a6fcbb88d61b7867189ecb65a6448b973e
2018-05-22 11:24:44 -04:00
Raul Jordan
3f1aaa1648 sharding: travis passes, all entrypoints work, notary protocol working
Former-commit-id: 4c78ea56ad3950c97f53281ef49383f3f79b29b2 [formerly ea7931d5620d8d98f466731aed362ea1401f8d67]
Former-commit-id: 9ffb8a85f7a54b1f48d4f297468214ae37bc995d
2018-05-22 08:11:16 -05:00
Raul Jordan
3b19aa7c03 sharding: fully functional start func in notary service
Former-commit-id: 0755ae70512ad06ee0710f20136883ecacc8cf63 [formerly 7d558c0b4d2dd5302eaf2b8e9f8d51224ffc3858]
Former-commit-id: 3c6b00e5d5e3547260e6e0c1122ef64be08a40c1
2018-05-22 07:56:56 -05:00