• Adrian Sutton's avatar
    op-program: Store created blocks to avoid needing to re-execute them (#12382) · d470c776
    Adrian Sutton authored
    * op-program: Store created blocks to avoid needing to re-execute them.
    
    Since op-program always creates a new block via engine_forkChoiceUpdated/engine_getPayload and then immediately sends the same block back to engine_newPayload to be imported, store the created block to the database without updating the chain head, so the engine_newPayload method is a no-op instead of having to execute the transactions again.
    
    * op-program: Add test that created block is not reprocessed on import (#12402)
    
    Also fixes differences in block hash for created payloads when using non-op stack chains.
    d470c776
Name
Last commit
Last update
..
testdata Loading commit data...
account_proof.go Loading commit data...
account_proof_test.go Loading commit data...
address.go Loading commit data...
address_test.go Loading commit data...
balance.go Loading commit data...
balance_test.go Loading commit data...
blob.go Loading commit data...
blob_test.go Loading commit data...
blobs_api.go Loading commit data...
blobs_api_test.go Loading commit data...
block_info.go Loading commit data...
ether.go Loading commit data...
ether_test.go Loading commit data...
heads.go Loading commit data...
id.go Loading commit data...
label.go Loading commit data...
output.go Loading commit data...
output_test.go Loading commit data...
receipts.go Loading commit data...
ssz.go Loading commit data...
ssz_test.go Loading commit data...
status.go Loading commit data...
sync_status.go Loading commit data...
transactions.go Loading commit data...
transactions_test.go Loading commit data...
types.go Loading commit data...
types_test.go Loading commit data...