diff --git a/plugin-api/src/main/java/org/hyperledger/besu/plugin/services/tracer/BlockAwareOperationTracer.java b/plugin-api/src/main/java/org/hyperledger/besu/plugin/services/tracer/BlockAwareOperationTracer.java index 9185d114370..13414738606 100644 --- a/plugin-api/src/main/java/org/hyperledger/besu/plugin/services/tracer/BlockAwareOperationTracer.java +++ b/plugin-api/src/main/java/org/hyperledger/besu/plugin/services/tracer/BlockAwareOperationTracer.java @@ -33,6 +33,17 @@ public interface BlockAwareOperationTracer extends OperationTracer { */ BlockAwareOperationTracer NO_TRACING = new BlockAwareOperationTracer() {}; + /** + * Trace the start of a block. Notice: This method has been marked for removal and will be removed + * in a future version. Avoid using it and use {@link #traceStartBlock(BlockHeader, BlockBody, + * Address)} instead. + * + * @param blockHeader the header of the block which is traced + * @param blockBody the body of the block which is traced + */ + @Deprecated + default void traceStartBlock(final BlockHeader blockHeader, final BlockBody blockBody) {} + /** * Trace the start of a block. * @@ -51,6 +62,16 @@ default void traceStartBlock( */ default void traceEndBlock(final BlockHeader blockHeader, final BlockBody blockBody) {} + /** + * When building a block this API is called at the start of the process. Notice: This method has + * been marked for removal and will be removed in a future version. Avoid using it and use {@link + * #traceStartBlock(ProcessableBlockHeader, Address)} instead. + * + * @param processableBlockHeader the processable header + */ + @Deprecated + default void traceStartBlock(final ProcessableBlockHeader processableBlockHeader) {} + /** * When building a block this API is called at the start of the process *