Fixing some API bits

- Adding the validator routes into the main function.
 - Fixing the setting of the aggregation bits, and handling errors correctly.
 - Rust format fixes, and addressing compiler warnings.
This commit is contained in:
Luke Anderson
2019-09-01 15:41:03 +10:00
parent 8ea1167563
commit 632c13a9ec
3 changed files with 26 additions and 23 deletions

View File

@@ -170,11 +170,11 @@ pub fn start_server<T: BeaconChainTypes>(
validator::get_new_beacon_block::<T>(req)
}
(&Method::POST, "/beacon/validator/block") => {
helpers::implementation_pending_response(req)
validator::publish_beacon_block::<T>(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)
}