use of tech.pegasys.teku.infrastructure.ssz.SszData in project teku by ConsenSys.
the class SszSchemaTestBase method assertTreeRoundtrip.
private void assertTreeRoundtrip(final SszSchema<?> schema, final int maxBranchLevelsSkipped) {
// Find some non-zero data (to make sure it's actually different to the default tree)
final SszData data = randomSsz.withMaxListSize(50).randomDataStream(schema).filter(item -> !item.getBackingNode().hashTreeRoot().isZero()).findFirst().orElseThrow();
assertTreeRoundtrip(schema, maxBranchLevelsSkipped, data);
}
Aggregations