mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 04:33:56 -05:00
Add requests hash to block result (#8419)
Signed-off-by: Gabriel-Trintinalia <gabriel.trintinalia@consensys.net>
This commit is contained in:
committed by
GitHub
parent
f39b90bd25
commit
9de13b0cdd
@@ -56,7 +56,8 @@ import org.apache.tuweni.bytes.Bytes32;
|
||||
"uncles",
|
||||
"transactions",
|
||||
"withdrawalsRoot",
|
||||
"withdrawals"
|
||||
"withdrawals",
|
||||
"requestsHash"
|
||||
})
|
||||
public class BlockResult implements JsonRpcResult {
|
||||
|
||||
@@ -88,6 +89,7 @@ public class BlockResult implements JsonRpcResult {
|
||||
private final String blobGasUsed;
|
||||
private final String excessBlobGas;
|
||||
private final String parentBeaconBlockRoot;
|
||||
private final String requestsHash;
|
||||
private final List<CallProcessingResult> callProcessingResults;
|
||||
|
||||
public BlockResult(
|
||||
@@ -152,6 +154,7 @@ public class BlockResult implements JsonRpcResult {
|
||||
this.excessBlobGas = header.getExcessBlobGas().map(Quantity::create).orElse(null);
|
||||
this.parentBeaconBlockRoot =
|
||||
header.getParentBeaconBlockRoot().map(Bytes32::toHexString).orElse(null);
|
||||
this.requestsHash = header.getRequestsHash().map(Hash::toString).orElse(null);
|
||||
}
|
||||
|
||||
@JsonGetter(value = "number")
|
||||
@@ -290,6 +293,11 @@ public class BlockResult implements JsonRpcResult {
|
||||
return parentBeaconBlockRoot;
|
||||
}
|
||||
|
||||
@JsonGetter(value = "requestsHash")
|
||||
public String getRequestsHash() {
|
||||
return requestsHash;
|
||||
}
|
||||
|
||||
@JsonGetter(value = "calls")
|
||||
public List<CallProcessingResult> getTransactionProcessingResults() {
|
||||
return callProcessingResults;
|
||||
|
||||
Reference in New Issue
Block a user