EIP-7742: Add target_blob_count to block header (#7808)

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
This commit is contained in:
Simon Dudley
2024-10-29 10:30:33 +10:00
committed by GitHub
parent 42b3cd4291
commit f855d5b72f
30 changed files with 137 additions and 15 deletions

View File

@@ -265,6 +265,17 @@ public class GenesisConfigFile {
"0x0000000000000000000000000000000000000000000000000000000000000000");
}
/**
* Gets target blob count.
*
* @return the target blob count
*/
public Optional<String> getTargetBlobCount() {
// TODO SLD EIP-7742 not sure if we should use a default value here or enforce any
// "pragueAtGenesis" genesis file (used in devnets) to have this value
return JsonUtil.getValueAsString(genesisRoot, "targetblobcount");
}
/**
* Gets coinbase.
*