Luke Anderson
cd8f40b4b7
Getting regular endpoint functions to return futures.
...
- Wrapped endpoint functions in new into_boxfut function
- Undid changes to Network API service, now returning ApiResult again.
- Cleaning up of functions, and removal of success_response functions in updated endpoints.
- A bunch of other clean-ups.
2019-09-12 15:20:31 +10:00
Luke Anderson
82f4303787
Merge branch 'api-alignment' into validator-post-fns
2019-09-12 15:12:54 +10:00
Luke Anderson
ea9d2285c3
Merge branch 'interop' into validator-post-fns.
2019-09-12 12:50:04 +10:00
Luke Anderson
c254ac8c2e
Separated acquisition of BeaconChain and BeaconState.
2019-09-12 01:44:45 +10:00
Luke Anderson
d9b7e684c9
Merge branch 'interop' into api-alignment
2019-09-12 01:32:29 +10:00
Luke Anderson
0bd8187ff6
Revert most of commit ebd97730d5
.
...
- Undoing making of the beacon chain read stuff return futures, instead dealing with it elsewhere.
2019-09-11 18:21:51 +10:00
Luke Anderson
2739ee83f9
Further restructuring futures API.
...
- Adding try_future! macros where necessary
- Returning ApiResult and mapping it to future instead
- Upgrading POST publish block to return a future directly
2019-09-11 18:02:00 +10:00
Paul Hauner
5d91d59481
Fix deadlock on becaon chain head
2019-09-10 22:42:07 -04:00
Paul Hauner
3fe61f5044
Add additional logs to validator client
2019-09-10 17:40:21 -04:00
Paul Hauner
b33f9c2bc9
Merge branch 'interop' of github.com:sigp/lighthouse into interop
2019-09-10 12:18:37 -04:00
Paul Hauner
8c5a8034b6
Add whiteblock script, CLI options to support it
2019-09-10 12:13:54 -04:00
Age Manning
04b43a51f9
Updates gossipsub to LRUcache
2019-09-11 02:07:39 +10:00
Luke Anderson
ebd97730d5
Converted the Beacon API service to Futures
...
- Added SSZ encode for HeadResponse
- Converted all of the /beacon/ endpoints to return BoxFut instead of ApiResult
- Wrapped all of the '?'s in a new macro try_future!()
- Copied the try macro to try_future, so that a boxed future can easily be returned.
- Replaced all of the response serializations to use the new success_response
2019-09-11 01:43:49 +10:00
Luke Anderson
b8667217f0
Made async functions work!
...
- Cleaned up imports
- Moved ApiError and such to it's own error.rs
- Obsoleted 'success_response' in favour of new async regular and json only flavours
- Made ApiError work async and be derived from hyper errors
- Added a check to ensure an error is thrown if a non-json encoding is requested on a json-only function
- Made all the individual service functions return futures (only node and network for now)
2019-09-11 00:40:22 +10:00
Luke Anderson
b0090df543
Getting the restructured ApiService to work.
2019-09-10 19:30:36 +10:00
Michael Sproul
4dcad27381
Fix ApiService woes (hopefully)
2019-09-10 17:27:28 +10:00
Luke Anderson
576712cefe
WIP: Trying to get futures to work...
2019-09-10 17:16:41 +10:00
Luke Anderson
965d6f1df9
WIP: More restructuring to have ApiService be a future.
2019-09-10 15:35:54 +10:00
Luke Anderson
405a59e8b9
WIP: Trying to restructure ApiService to be async.
2019-09-10 10:56:50 +10:00
Luke Anderson
476cbae577
Updated validator client to do better logging, including of JSON serialised signatures and such, for debugging purposes.
2019-09-10 10:55:46 +10:00
Luke Anderson
ca9094e79a
WIP: Made block publishing validator function, which sends to a network channel. Untested.
2019-09-10 10:54:37 +10:00
Paul Hauner
5de80f2799
Add extra logging when new head found
2019-09-09 17:12:47 -04:00
Paul Hauner
d466f90843
Rename cli_util to lcli
2019-09-09 17:05:23 -04:00
Paul Hauner
c931446fb1
Merge branch 'interop' of github.com:sigp/lighthouse into interop
2019-09-09 16:44:12 -04:00
Paul Hauner
66fd1586ca
Add more logging around block/attn production
2019-09-09 16:43:08 -04:00
Age Manning
60f37789a6
Allowing lighthouse to suit Alex's non-spec shinanigans
2019-09-10 03:57:44 +10:00
Paul Hauner
e07fc08f8e
Fix warnings
2019-09-09 12:29:50 -04:00
Paul Hauner
d9a4dbd912
Add nimbus-specific test
2019-09-09 12:22:09 -04:00
Paul Hauner
14e8c6c87c
Add hex parsing to test_cli
2019-09-09 12:21:41 -04:00
Paul Hauner
15220ae565
Fix minor vec access panic opportunity
2019-09-09 01:55:43 -04:00
Paul Hauner
cce76f0bd2
Add block transition to cli_util
2019-09-09 01:55:14 -04:00
Paul Hauner
e1d6e187d1
Fix bug in crosslink rewards during per-epoch
2019-09-09 01:54:32 -04:00
Luke Anderson
0136eb33b0
WIP: Added POST functionality for pusblish_beacon_block. Currently doesn't compile, struggling with the borrow checker.
2019-09-09 12:54:14 +10:00
Luke Anderson
99c673045c
Moved chain/cache building into separate function, and made sure that all REST API endpoints are using this function to get the state.
2019-09-09 12:10:41 +10:00
Paul Hauner
7b7a44e2f2
Add const to control writing of ssz files
2019-09-08 21:57:48 -04:00
Luke Anderson
a2267dc4d3
Merge branch 'interop' into api-alignment
2019-09-09 11:52:41 +10:00
Paul Hauner
09b0db2535
Change which pre state is logged
2019-09-08 21:11:16 -04:00
Paul Hauner
e7b324966d
Log all states and blocks processed
2019-09-08 20:55:15 -04:00
Paul Hauner
37cd98f3ce
Add additional logging for gossip messages
2019-09-08 18:51:24 -04:00
Paul Hauner
7a32d50901
Merge branch 'interop' of github.com:sigp/lighthouse into interop
2019-09-08 18:39:29 -04:00
Gregory Markou
39f7dda761
fix pauls shit ( #528 )
2019-09-08 18:38:22 -04:00
Paul Hauner
0e5f33d928
Removes testin dbg!'s
...
Hopefully this appeases @gregthegreek
2019-09-08 18:37:30 -04:00
Paul Hauner
1040c80cd8
Add noisey debugging to attestation processing
2019-09-08 16:28:01 -04:00
Paul Hauner
92c16bb911
Add extra logs to gossip object processing
2019-09-08 14:20:48 -04:00
Paul Hauner
6311b13169
Add ssz benches to state processing
2019-09-08 13:42:38 -04:00
Luke Anderson
99414155d1
Merging interop into api-alignment; fixing conflicts.
2019-09-09 03:02:41 +10:00
Paul Hauner
834c36d602
Merge branch 'interop' of github.com:sigp/lighthouse into interop
2019-09-08 12:25:35 -04:00
Paul Hauner
6a870d468c
Add ssz_fixed_len method to ssz::Encode
2019-09-08 12:23:37 -04:00
Age Manning
e8619399f2
Patch to correct for single byte RPC responses
2019-09-08 07:10:36 +10:00
Paul Hauner
d8ce59e235
Merge branch 'interop' of github.com:sigp/lighthouse into interop
2019-09-08 04:21:55 +10:00