Skip to content

Commit

Permalink
Remove unused files
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel-Trintinalia <[email protected]>
  • Loading branch information
Gabriel-Trintinalia committed Dec 10, 2024
1 parent 40db421 commit e1a1967
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public BlockSimulatorServiceImpl(
}

/**
* Simulate the creation of a block given header, a list of transactions, and blockOverrides.
* Simulate the processing of a block given a header, a list of transactions, and blockOverrides.
*
* @param header the header
* @param transactions the transactions to include in the block
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public class BlockResult implements JsonRpcResult {
private final String excessBlobGas;
private final String parentBeaconBlockRoot;
private final String targetBlobsPerBlock;
private final List<TransactionProcessingResult> transactionProcessingResults;
private final List<CallProcessingResult> callProcessingResults;

public BlockResult(
final BlockHeader header,
Expand All @@ -115,7 +115,7 @@ public BlockResult(
final BlockHeader header,
final List<TransactionResult> transactions,
final List<JsonNode> ommers,
final List<TransactionProcessingResult> transactionProcessingResults,
final List<CallProcessingResult> callProcessingResults,
final Difficulty totalDifficulty,
final int size,
final boolean includeCoinbase,
Expand All @@ -141,7 +141,7 @@ public BlockResult(
this.timestamp = Quantity.create(header.getTimestamp());
this.ommers = ommers;
this.transactions = transactions;
this.transactionProcessingResults = transactionProcessingResults;
this.callProcessingResults = callProcessingResults;
this.coinbase = includeCoinbase ? header.getCoinbase().toString() : null;
this.withdrawalsRoot = header.getWithdrawalsRoot().map(Hash::toString).orElse(null);
this.withdrawals =
Expand Down Expand Up @@ -298,7 +298,7 @@ public String getTargetBlobsPerBlock() {
}

@JsonGetter(value = "calls")
public List<TransactionProcessingResult> getTransactionProcessingResults() {
return transactionProcessingResults;
public List<CallProcessingResult> getTransactionProcessingResults() {
return callProcessingResults;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.tuweni.bytes.Bytes;

public class TransactionProcessingResult {
public class CallProcessingResult {
@JsonProperty("status")
private final String status;

Expand All @@ -36,7 +36,7 @@ public class TransactionProcessingResult {
@JsonProperty("logs")
private final List<LogResult> logs;

public TransactionProcessingResult(
public CallProcessingResult(
@JsonProperty("status") final int status,
@JsonProperty("returnData") final Bytes returnData,
@JsonProperty("gasUsed") final long gasUsed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public void shouldNotProcessWithInvalidWorldState() {
() -> blockSimulator.process(blockHeader, Collections.emptyList()));

assertEquals(
String.format("Public world state not available for block %s", blockHeader.toLogString()), exception.getMessage());
String.format("Public world state not available for block %s", blockHeader.toLogString()),
exception.getMessage());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public interface BlockSimulationService extends BesuService {
/**
* Simulate the creation of a block given header, a list of transactions, and blockOverrides.
* Simulate the processing of a block given header, a list of transactions, and blockOverrides.
*
* @param header the header
* @param transactions the transactions to include in the block
Expand Down

0 comments on commit e1a1967

Please sign in to comment.