From 9e688bcb954bca3c223c54d7f3f8e05fde3e804c Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Thu, 20 Jul 2023 17:40:02 +0200 Subject: [PATCH] Fix javadoc Signed-off-by: Fabio Di Fabio --- .../merge/blockcreation/MergeMiningCoordinator.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeMiningCoordinator.java b/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeMiningCoordinator.java index 5ad9ea64da9..3ebaaebf995 100644 --- a/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeMiningCoordinator.java +++ b/consensus/merge/src/main/java/org/hyperledger/besu/consensus/merge/blockcreation/MergeMiningCoordinator.java @@ -98,6 +98,13 @@ ForkchoiceResult updateForkChoice( */ Optional getLatestValidAncestor(BlockHeader blockheader); + /** + * Checks if a block descend from another + * + * @param ancestorBlock the ancestor block + * @param newBlock the block we want to check if is descendant + * @return true if newBlock is a descendant of ancestorBlock + */ boolean isDescendantOf(final BlockHeader ancestorBlock, final BlockHeader newBlock); /**