mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 20:47:59 -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",
|
"uncles",
|
||||||
"transactions",
|
"transactions",
|
||||||
"withdrawalsRoot",
|
"withdrawalsRoot",
|
||||||
"withdrawals"
|
"withdrawals",
|
||||||
|
"requestsHash"
|
||||||
})
|
})
|
||||||
public class BlockResult implements JsonRpcResult {
|
public class BlockResult implements JsonRpcResult {
|
||||||
|
|
||||||
@@ -88,6 +89,7 @@ public class BlockResult implements JsonRpcResult {
|
|||||||
private final String blobGasUsed;
|
private final String blobGasUsed;
|
||||||
private final String excessBlobGas;
|
private final String excessBlobGas;
|
||||||
private final String parentBeaconBlockRoot;
|
private final String parentBeaconBlockRoot;
|
||||||
|
private final String requestsHash;
|
||||||
private final List<CallProcessingResult> callProcessingResults;
|
private final List<CallProcessingResult> callProcessingResults;
|
||||||
|
|
||||||
public BlockResult(
|
public BlockResult(
|
||||||
@@ -152,6 +154,7 @@ public class BlockResult implements JsonRpcResult {
|
|||||||
this.excessBlobGas = header.getExcessBlobGas().map(Quantity::create).orElse(null);
|
this.excessBlobGas = header.getExcessBlobGas().map(Quantity::create).orElse(null);
|
||||||
this.parentBeaconBlockRoot =
|
this.parentBeaconBlockRoot =
|
||||||
header.getParentBeaconBlockRoot().map(Bytes32::toHexString).orElse(null);
|
header.getParentBeaconBlockRoot().map(Bytes32::toHexString).orElse(null);
|
||||||
|
this.requestsHash = header.getRequestsHash().map(Hash::toString).orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonGetter(value = "number")
|
@JsonGetter(value = "number")
|
||||||
@@ -290,6 +293,11 @@ public class BlockResult implements JsonRpcResult {
|
|||||||
return parentBeaconBlockRoot;
|
return parentBeaconBlockRoot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonGetter(value = "requestsHash")
|
||||||
|
public String getRequestsHash() {
|
||||||
|
return requestsHash;
|
||||||
|
}
|
||||||
|
|
||||||
@JsonGetter(value = "calls")
|
@JsonGetter(value = "calls")
|
||||||
public List<CallProcessingResult> getTransactionProcessingResults() {
|
public List<CallProcessingResult> getTransactionProcessingResults() {
|
||||||
return callProcessingResults;
|
return callProcessingResults;
|
||||||
|
|||||||
Reference in New Issue
Block a user