This commit is contained in:
jangko 2024-11-22 17:48:39 +07:00
parent 117a9af31f
commit cd6aee192c
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
3 changed files with 3 additions and 3 deletions

View File

@ -280,7 +280,7 @@ proc toBlockHeader*(bc: BlockObject): Header =
excessBlobGas : maybeU64(bc.excessBlobGas),
parentBeaconBlockRoot: bc.parentBeaconBlockRoot,
requestsHash : bc.requestsHash,
targetBlobsPerBlock: bc.targetBlobsPerBlock,
targetBlobsPerBlock: maybeU64(bc.targetBlobsPerBlock),
)
func vHashes(x: Opt[seq[Hash32]]): seq[VersionedHash] =

View File

@ -212,7 +212,7 @@ proc populateBlockObject*(blockHash: eth_types.Hash32,
result.blobGasUsed = w3Qty(header.blobGasUsed)
result.excessBlobGas = w3Qty(header.excessBlobGas)
result.requestsHash = header.requestsHash
result.targetBlobsPerBlock = header.targetBlobsPerBlock
result.targetBlobsPerBlock = w3Qty(header.targetBlobsPerBlock)
proc populateReceipt*(receipt: Receipt, gasUsed: GasInt, tx: Transaction,
txIndex: uint64, header: Header): ReceiptObject =

View File

@ -146,7 +146,7 @@ proc run*(
executionPayload(payload.asEngineExecutionPayload()),
parentBeaconBlockRoot = Opt.none(Hash32),
requestsHash = Opt.none(Hash32),
targetBlobsPerBlock = Opt.none(Quantity)
targetBlobsPerBlock = Opt.none(Quantity),
)
blockCache.add(populateBlockObject(blk.header.rlpHash, blk, 0.u256, true))
except RlpError as exc: