Commit Graph

8267 Commits

Author SHA1 Message Date
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
Raul Jordan
49dc0dc4a5 sharding: fixed main entry point, linter errors
Former-commit-id: 705e95b849818683ab610b80f101278e6241b4d6 [formerly 925da4e8a6ef6d8e9d82ba9073666c2a26cd6c77]
Former-commit-id: a43a26be717cb63a0a8c03165e865d875ca11ed4
2018-05-22 07:47:35 -05:00
Raul Jordan
44ad64ffa5 sharding: tests pass
Former-commit-id: 8fbbb08b62c3ca59d5a74ecdc12944c9facc6ad6 [formerly 564ebef7667c7c3e5e2476046027961dbe900e4d]
Former-commit-id: ac1af4f69f41c54afc520259285dfb68775be966
2018-05-22 06:53:15 -05:00
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
Terence Tsao
a3dbac8ea7 sharding/contracts: add contracts.go back
Former-commit-id: 4da29790ac8bc3ece02c9ccc8e1eb969d037f54d [formerly 801a5d57e75c0d9ad51fa68bbbf155bb66757e89]
Former-commit-id: cc4e984d4b00ebef2b34562807871249ae843164
2018-05-21 08:38:04 -07:00
Terence Tsao
848a46efe7 sharding/proposer: sync implementation w/ latest master
Former-commit-id: 4d8862ce8ddb66c4abae746cafbf8c7f5588982b [formerly 837f54daae9575bc08a9ac32bf5cf1c86aa800f3]
Former-commit-id: 43d7b466ac5ca717499d4d0f0391f009800086a6
2018-05-20 19:28:37 -07:00
Terence Tsao
2bb3404489 sharding/proposer: getting latest master
Former-commit-id: cede343cd746f22e1f6c4b26170feee1ccb08279 [formerly 8b0c5079006abc7d1f1c96163a88d3b3bb861ebe]
Former-commit-id: 4a1d301c8f56b22daae4ed618636234600e62cb3
2018-05-20 18:18:49 -07: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
Terence Tsao
1541112f88 sharding/contracts: fixed goimports issue
Former-commit-id: d09d2fd7c683171c46bd54a83ff08e2277826efc [formerly e851930ca3631e33aa34dd0167f4f54f0d3b15aa]
Former-commit-id: 3c708bdf931f571db7c6bd8048baf40e9371f215
2018-05-19 15:27:29 -07:00
Terence Tsao
dee0ce608b sharding/contracts: only use t.Fatalf when necessary
Former-commit-id: 89075b65c022d6e8fd5c6ed17fc097fa745f4262 [formerly d5b8e5c32cc4ae4df014236693af05992482f903]
Former-commit-id: 1c60e10116a6900a7d010b17b201654e30a26c45
2018-05-19 15:10:02 -07:00
Terence Tsao
d5390fe6f5 sharding/contracts: optimize fastForward function
Former-commit-id: 932d6c2fb9f32160216b11e7ab46a41758be4d20 [formerly 388fe2ce8a060a4a36c97450c94d339f4e041aa9]
Former-commit-id: 0a08ba7d76cb526ae5d2e825ccf58b03b1582ea1
2018-05-19 12:24:42 -07:00
Terence Tsao
bbfdff510c sharding/contracts: merge with remote
Former-commit-id: 0cd088c968a4d3cb2732f4fae58369c970cd803b [formerly e03c58b8caeb564d3e76c06ab5bbc7bbaa1cac0f]
Former-commit-id: bdf2a7de17f155a5613f72a895016459688885c6
2018-05-19 12:19:09 -07:00