Skip to content

Commit

Permalink
Add back deprecated traceStartBlock methods to the tracer API
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pinto committed Jan 13, 2025
1 parent 4eb6fb0 commit 049a396
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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
*
Expand Down

0 comments on commit 049a396

Please sign in to comment.