Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ are provided with different values, using input as per the execution-apis spec i
- Implement `txpool_status` RPC method [#10002](https://github.com/hyperledger/besu/pull/10002)
- Support [EIP-7975](https://eips.ethereum.org/EIPS/eip-7975): eth/70 - partial block receipt lists
- Limit pooled tx requests by size and remove pre-eth/68 transaction announcement support [#9990](https://github.com/besu-eth/besu/pull/9990)
<<<<<<< optimize/register-based-shift
- Use cache locality to improve Shift opcodes [#9878](https://github.com/besu-eth/besu/pull/9878)
=======
- Add maxUsedGas field to eth_simulateV1 results [#10066](https://github.com/besu-eth/besu/pull/10066)
- Plugin API: pass pending block header when creating selectors [#10034](https://github.com/besu-eth/besu/pull/10034)
>>>>>>> main

## 26.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ private static CallProcessingResult createTransactionProcessingResult(
return new CallProcessingResult(
result.isSuccessful() ? 1 : 0,
result.getOutput(),
simulatorResult.getGasEstimate(),
result.getGasSpent(),
result.getEstimateGasUsedByTransaction(),
getError(result),
new LogsResult(transactionLogs));
Comment thread
macfarla marked this conversation as resolved.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class CallProcessingResult {
@JsonProperty("gasUsed")
private final String gasUsed;

@JsonProperty("maxUsedGas")
private final String maxUsedGas;
Comment thread
macfarla marked this conversation as resolved.

@JsonProperty("error")
private final JsonRpcError error;

Expand All @@ -42,11 +45,13 @@ public CallProcessingResult(
@JsonProperty("status") final int status,
@JsonProperty("returnData") final Bytes returnData,
@JsonProperty("gasUsed") final long gasUsed,
@JsonProperty("maxUsedGas") final long maxUsedGas,
Comment thread
macfarla marked this conversation as resolved.
@JsonProperty("error") final JsonRpcError error,
@JsonProperty("logs") final LogsResult logs) {
this.status = Quantity.create(status);
this.returnData = returnData.toString();
this.gasUsed = Quantity.create(gasUsed);
this.maxUsedGas = Quantity.create(maxUsedGas);
Comment thread
macfarla marked this conversation as resolved.
this.error = error;
this.logs = logs;
}
Expand All @@ -63,6 +68,10 @@ public String getGasUsed() {
return gasUsed;
}

public String getMaxUsedGas() {
return maxUsedGas;
}
Comment thread
macfarla marked this conversation as resolved.

@JsonInclude(JsonInclude.Include.NON_NULL)
public JsonRpcError getError() {
return error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
]
}
],
"maxUsedGas": "0x13b30",
"returnData": "0x",
"status": "0x1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@
{
"gasUsed": "0xa637",
"logs": [],
"maxUsedGas": "0xcfc4",
"returnData": "0x",
"status": "0x1"
},
{
"gasUsed": "0x5db5",
"logs": [],
"maxUsedGas": "0x5db5",
"returnData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
Comment thread
macfarla marked this conversation as resolved.
"returnData": "0x",
"status": "0x1"
},
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
"returnData": "0x",
"status": "0x1"
}
Comment thread
macfarla marked this conversation as resolved.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
"returnData": "0x",
"status": "0x1"
},
{
"gasUsed": "0x5208",
"logs": [],
"maxUsedGas": "0x5208",
"returnData": "0x",
"status": "0x1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
{
"gasUsed": "0x53f6",
"logs": [],
"maxUsedGas": "0x53f6",
"returnData": "0x010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c44401400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
Expand Down Expand Up @@ -130,6 +131,7 @@
{
"gasUsed": "0x53f6",
"logs": [],
"maxUsedGas": "0x53f6",
"returnData": "0x010657f37554c781402a22917dee2f75def7ab966d7b770905398eba3c44401400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
Expand Down
Loading