Update RPC. WIP

This commit is contained in:
Age Manning
2019-07-22 14:13:18 +10:00
parent b2a1b20e24
commit b350a78fec
4 changed files with 2 additions and 20 deletions

View File

@@ -503,11 +503,7 @@ impl<T: BeaconChainTypes> SimpleSync<T> {
"returned" => block_bodies.len(),
);
//TODO: Elegant ssz encoding. Either here or in the message handler
let bytes = {
let resp = EncodeableBeaconBlockBodiesResponse { block_bodies };
resp.as_ssz_bytes()
};
let bytes = block_bodes.as_ssz_bytes();
network.send_rpc_response(
peer_id,