Start implementation of 'get attstation' validator function.

- Created new /beacon/validator/attestation endpoint
 - Updated some small issues with the API spec.
This commit is contained in:
Luke Anderson
2019-08-29 14:58:49 +10:00
parent b9276da9db
commit eaec5e7b69
3 changed files with 67 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ pub fn start_server<T: BeaconChainTypes>(
helpers::implementation_pending_response(req)
}
(&Method::GET, "/beacon/validator/attestation") => {
helpers::implementation_pending_response(req)
validator::get_new_attestation::<T>(req)
}
(&Method::POST, "/beacon/validator/attestation") => {
helpers::implementation_pending_response(req)