use of tech.pegasys.teku.api.response.v1.beacon.GetBlockHeaderResponse in project teku by ConsenSys.
the class GetBlockHeaderIntegrationTest method shouldGetBlockHeader.
@Test
public void shouldGetBlockHeader() throws IOException {
final List<SignedBlockAndState> created = createBlocksAtSlots(10);
final Response response = get("head");
final GetBlockHeaderResponse body = jsonProvider.jsonToObject(response.body().string(), GetBlockHeaderResponse.class);
final BlockHeader data = body.data;
assertThat(data).isEqualTo(new BlockHeader(created.get(0).getBlock(), true));
}
Aggregations