Factored out getting beacon_chain from request into it's own function.

This commit is contained in:
Luke Anderson
2019-09-01 15:09:01 +10:00
parent 5ee1bb20b7
commit 8ea1167563
3 changed files with 72 additions and 29 deletions

View File

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