Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 70d96bf

Browse files
lu-pintogaryschulte
authored andcommitted
Add back deprecated traceStartBlock methods to the tracer API (#8112)
Signed-off-by: Luis Pinto <[email protected]>
1 parent 5587b80 commit 70d96bf

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

plugin-api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Calculated : ${currentHash}
7171
tasks.register('checkAPIChanges', FileStateChecker) {
7272
description = "Checks that the API for the Plugin-API project does not change without deliberate thought"
7373
files = sourceSets.main.allJava.files
74-
knownHash = 'V3YwoXiJjbbrtpr7DmbebhJwAcj40J/3gb6VZcoFlF8='
74+
knownHash = '2b6i9SVzINvYv2E4yHk10d6ad+pzA12xsMltKghnW+U='
7575
}
7676
check.dependsOn('checkAPIChanges')
7777

plugin-api/src/main/java/org/hyperledger/besu/plugin/services/tracer/BlockAwareOperationTracer.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ public interface BlockAwareOperationTracer extends OperationTracer {
3333
*/
3434
BlockAwareOperationTracer NO_TRACING = new BlockAwareOperationTracer() {};
3535

36+
/**
37+
* Trace the start of a block. Notice: This method has been marked for removal and will be removed
38+
* in a future version. Avoid using it and use {@link #traceStartBlock(BlockHeader, BlockBody,
39+
* Address)} instead.
40+
*
41+
* @param blockHeader the header of the block which is traced
42+
* @param blockBody the body of the block which is traced
43+
*/
44+
@Deprecated
45+
default void traceStartBlock(final BlockHeader blockHeader, final BlockBody blockBody) {}
46+
3647
/**
3748
* Trace the start of a block.
3849
*
@@ -51,6 +62,16 @@ default void traceStartBlock(
5162
*/
5263
default void traceEndBlock(final BlockHeader blockHeader, final BlockBody blockBody) {}
5364

65+
/**
66+
* When building a block this API is called at the start of the process. Notice: This method has
67+
* been marked for removal and will be removed in a future version. Avoid using it and use {@link
68+
* #traceStartBlock(ProcessableBlockHeader, Address)} instead.
69+
*
70+
* @param processableBlockHeader the processable header
71+
*/
72+
@Deprecated
73+
default void traceStartBlock(final ProcessableBlockHeader processableBlockHeader) {}
74+
5475
/**
5576
* When building a block this API is called at the start of the process
5677
*

0 commit comments

Comments
 (0)