use of org.ethereum.core.BlockIdentifier in project rskj by rsksmart.
the class NewBlockHashesMessage method encode.
private void encode() {
List<byte[]> encodedElements = new ArrayList<>();
for (BlockIdentifier identifier : blockIdentifiers) {
encodedElements.add(identifier.getEncoded());
}
byte[][] encodedElementArray = encodedElements.toArray(new byte[encodedElements.size()][]);
this.encoded = RLP.encodeList(encodedElementArray);
}
Aggregations