Commit Graph

27 Commits

Author SHA1 Message Date
Terence Tsao
5bb4b56a25 fixed return statement
Former-commit-id: 72a6194db8e0586e9b4b05f16898fff1516a07a3 [formerly 4353ca90022670878d3ccaef6d6ec886d110df0e]
Former-commit-id: 3bbf849e7f2cf1c846f58f7a1d916fa1276279fc
2018-03-08 19:30:30 -08:00
Terence Tsao
aa5bb73045 fixed travis & preston's feedback
Former-commit-id: 7939967ec2b19ff2dbec2c09d027e68a7c832c32 [formerly 6f7df3d11a74ba4d20ba169cc1ddf5a72f8d28dd]
Former-commit-id: ff4c98fa06880688b7351c24260c9126ab3d1402
2018-03-08 18:05:39 -08:00
Terence Tsao
af7124e91f fixed all the typos during integration, manually tested
Former-commit-id: 85344d0a515f1bc6d2ac32a43ac7b2fc96e477c5 [formerly ae47d11056c1c4ca49d254c25ab324240751b2dc]
Former-commit-id: 2655a39f356563dbd37a5344a217f8ab5305d263
2018-03-08 17:40:22 -08:00
Terence Tsao
979f29715e fixed one typo
Former-commit-id: db5dcfd6ed8fe974703468fcabd129a1938da175 [formerly 8c7abcba5a6e9dfe6fb7d012d3ba54a12b738755]
Former-commit-id: 3afb20fa51b2c191249c187431c7f7dfc2ac9274
2018-03-08 09:40:59 -08:00
Terence Tsao
a66632477b renamed to new glossary terms for main sharding folder
Former-commit-id: f305383a3bb64cd9b43a14a4426197a5e82a1d37 [formerly b55ec2db5cbfddb6a2d9bfb8e079ddd05069092c]
Former-commit-id: 92e5548fae9894c18ead5dbb3a3e7645345a8378
2018-03-08 09:34:15 -08:00
Preston Van Loon
3da21bb56f remove old TODO
Former-commit-id: 91eaf64bc2d90f1ccd915d87356b326341bcd55f [formerly f280e3c2f8513a7f113f3da828cd7fea7a46a8ab]
Former-commit-id: 0ec24bb0be0bfcba37bfa9c42c57fc91225fe1c2
2018-02-27 19:31:15 -05:00
Preston Van Loon
30fd4a6a17 Remove comment TODO resolved in #41
Former-commit-id: cfc2896b65e3e92c0cfb6f98f7230876590e13b1 [formerly d6f2219b30fbd6b1f475c356797516e9a42a139b]
Former-commit-id: aa9494c354035cce86f1775638c5224f87705344
2018-02-27 19:22:20 -05:00
Terence Tsao
550857efff refactor account, and unlock account when client is created
Former-commit-id: 070519fc78204142787fb029adbbff8fecb8ef19 [formerly 3108cad68479d3aa2f3ed4b916c797042b3652d0]
Former-commit-id: 6fedfecdbc7839bc78054ea7a8b38987d2bf9cf8
2018-02-27 09:15:45 -08:00
Terence Tsao
349501a815 fixed linter issue
Former-commit-id: 6f9ff695c747f337cce2d6fdbd04c48b4a36d9d5 [formerly 7397777cc91d4055558d3e32d17eec53f0b02cb5]
Former-commit-id: 3eae93312088ab799c2ac5878295ab212f469ec1
2018-02-26 18:19:36 -08:00
Terence Tsao
8b91d97897 updated comment to reflect new method name, added punctuation
Former-commit-id: e1c33f0d62cd460afc750e538a15b051be755ee2 [formerly 92a2419212708a0fa9f3ae88f9aeede7d836df4e]
Former-commit-id: 6f8bd74087939390191abae2b56a6bed22280c95
2018-02-26 17:31:00 -08:00
Terence Tsao
b3648af9be updated warning msg, and made method name more descriptive
Former-commit-id: 9a3da33abd9f3a4a687d3991ceff2ed1e428e871 [formerly 6d19a8f335e9307d4b10a47eb60fb9743c7db435]
Former-commit-id: f6316b049ffc6f3ab94405a841bda1d2686a287f
2018-02-26 17:18:49 -08:00
Terence Tsao
dcdafc3111 verify client is in validator pool before querying eligible proposer
Former-commit-id: 137864983a88747e187ddf8215b5ca91b6122df2 [formerly 66faa46eb087b222292a1b0d941374601a8e9f12]
Former-commit-id: c0e2a692144a3c8c530c4cb8e7b6188c1d581d17
2018-02-26 14:48:42 -08:00
Terence Tsao
ebe815821c fixed period calculation for head.Number to not be mutated
Former-commit-id: 56af1ad6043db21c5e9ddfca1ed3c05ea5645c6a [formerly 73dbf59c6bb50da956b7eb0eaa409dfcd3d72560]
Former-commit-id: cb179c464b0ffaafecb146e34621a00e2e6835d8
2018-02-23 11:57:37 -08:00
Preston Van Loon
a92945577a lint: remove unnecessary switch statement
Former-commit-id: 831551f32fcce774174ff991a3b3d83b6cda8b84 [formerly 561a47aa73d04ff60994cadb8ff149fe88ae2dc0]
Former-commit-id: da00c165621ad399486474e4298c0acff76a3779
2018-02-09 19:07:51 -05:00
Preston Van Loon
b840bdb1a4 return error and clean up test
Former-commit-id: bd81cffdb82ce3849486b03be4bf6a3088bb2986 [formerly d808676e6c9871ad55d6576e2ef86c3ed13da22b]
Former-commit-id: 5cc96395c90c27d6b792d570b6d2f44844180110
2018-02-09 18:47:36 -05:00
Preston Van Loon
aa1a3b3405 working on testability with interfaces.
Former-commit-id: f8aa95e14151ae8d43d6781cdc64cced71a82e60 [formerly fbdb217576862532d2fe89f5a017d2641dfc6217]
Former-commit-id: 5879301b438746facd133f21ef6b299623b346c8
2018-02-07 21:00:20 -05:00
Raul Jordan
2a612de3c5 adjust all for review, create test files
Former-commit-id: ff13be57aab24129a97f359464fb5b8154c5a206 [formerly ff9566d3bd5653b23fc2846b26e1b07a15fdc159]
Former-commit-id: 371821f0ad0bb76640eed2199f5dc49f979d14d8
2018-02-06 17:06:47 -08:00
Raul Jordan
a092f8d19d include latest changes with txops and everything running smoothly
Former-commit-id: 4367137b9310a7c7a74e569499def685c06c1c09 [formerly 3947fb77747b13e5bb61c0bfc51127a0df4f5796]
Former-commit-id: 0abf3e2beaffc399d53a1f1919a9b5a7b7512aee
2018-02-06 14:22:19 -06:00
Raul Jordan
6fe43bd446 adjust code to reviews, abstract funcs, clean up files
Former-commit-id: ec19a9de17ec38c54af49684426345056fa3fb07 [formerly a8533d2bcc036bde18583abc4a157d63e552ee06]
Former-commit-id: b085ecaec184ad2c2370388c2717d1e6f8a2e04f
2018-02-06 14:04:45 -06:00
Raul Jordan
a9afdd90ef propose collation called on geteligibleproposer
Former-commit-id: 0a23d54aa3006d103bb7123bcfe0ac2ca3a2b027 [formerly 7266cc53ca4d6826b4a54d30391f9c5e5b0b7d10]
Former-commit-id: 6b33ca471ede8696fc83285ae426645308a4c6fe
2018-02-05 22:41:40 -06:00
Raul Jordan
538a4ef41f add all TODOs and get things running
Former-commit-id: 574697493b0cdcf905066744b9705d3436dbc73c [formerly a81127a11ce815ca4255674544a410c750039f14]
Former-commit-id: fbd9a1214716a13a98ceef420760e73bc65439db
2018-02-05 18:50:32 -06:00
Raul Jordan
ad2a5a655b proper error handling in collator.go
Former-commit-id: b2b5a4602f2767dfdd8b3de3b2a9cf4994f8e2fa [formerly 1b764bc06d5d5eff79ffc197d89c3614313d7bb3]
Former-commit-id: ec5a587e262d81211ba525afaf603a89fc1916f6
2018-02-05 12:00:29 -06:00
Raul Jordan
6314e30738 incl shardcount and geteligibleproposer
Former-commit-id: ca89a12bde74378a1ca74d5d22cbdb66990c7025 [formerly 4c1576328b40485517e429e1f767d796fc102158]
Former-commit-id: 01ea5d46fb9bda3dc340e368a37efbf3a34e7624
2018-02-05 11:54:33 -06:00
Raul Jordan
ed6e77b24f propose collation called if addr from sample is coinbase
Former-commit-id: 95d9c92597ded3ddb607370f43702122c44b5f56 [formerly f19f1fd28b1f8d44b27e054cfccf39b37110149a]
Former-commit-id: 1364ac025a86fd1b489255646efeb0b09c1c3cb0
2018-02-01 18:01:21 -06:00
Raul Jordan
ec5e19f77c loops over shards and checks if eligible proposer
Former-commit-id: 50cae4574228c725b83c0c6669a0a1231129d2a8 [formerly 7caacc27c9ddb53a0b0d3d635cbd93bec61499e3]
Former-commit-id: 8f127e38b79a57e7ca52fe02b1f989b032d74a2e
2018-02-01 13:30:24 -06:00
Raul Jordan
ea885e97ea get shard list programmatically
Former-commit-id: 17272ff42a6e802584171c230634b690168a8800 [formerly f733e0760493d8d784bd68cfba648c2ea62fdb43]
Former-commit-id: 7ebe6cf22b8193302bc1270a2fd52df21b97c136
2018-01-31 22:41:11 -06:00
Raul Jordan
319ba38250 rename to collator.go and implement the watchShards func
Former-commit-id: a408cce4805fab38dd0d52d8743c4d00b82133ee [formerly 01b8b29da9443a10ba632f386385e4bc9fc86a84]
Former-commit-id: a88f703397c4f0a90414b1769a499bd108dcff05
2018-01-31 22:33:38 -06:00