Skip to content

client: Subsume engine's INVALID_TERMINAL_BLOCK into INVALID response - #1919

Merged
ryanio merged 2 commits into
masterfrom
g11tech/invalid-terminal-block
May 28, 2022
Merged

ryanio merged 2 commits into
masterfrom
g11tech/invalid-terminal-block

Conversation

@g11tech

@g11tech g11tech commented May 27, 2022

Copy link
Copy Markdown
Contributor

The ethereum/execution-apis#217 part of the v1.0.0-alpha.9 subsumes the INVALID_TERMINAL_BLOCK into INVALID response via {status: INVALID, latestValidHash: 0x0000000000000000000000000000000000000000000000000000000000000000}

This PR implements the same.

@codecov

codecov Bot commented May 27, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1919 (55a2cf6) into master (2b993aa) will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

Flag Coverage Δ
block 85.57% <ø> (ø)
blockchain 83.82% <ø> (ø)
client 76.95% <ø> (-0.01%) ⬇️
common 94.19% <ø> (ø)
devp2p 82.49% <ø> (-0.14%) ⬇️
ethash 90.76% <ø> (ø)
trie 80.02% <ø> (-0.88%) ⬇️
tx 88.22% <ø> (ø)
util 92.62% <ø> (ø)
vm 81.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@g11tech g11tech changed the title Subsume INVALID_TERMINAL_BLOCK into INVALID response client: Subsume INVALID_TERMINAL_BLOCK into INVALID response May 27, 2022
@g11tech g11tech changed the title client: Subsume INVALID_TERMINAL_BLOCK into INVALID response client: Subsume engine's INVALID_TERMINAL_BLOCK into INVALID response May 27, 2022
@g11tech g11tech changed the title client: Subsume engine's INVALID_TERMINAL_BLOCK into INVALID response client: Subsume engines INVALID_TERMINAL_BLOCK into INVALID response May 27, 2022
@g11tech g11tech changed the title client: Subsume engines INVALID_TERMINAL_BLOCK into INVALID response client: Subsume engine's INVALID_TERMINAL_BLOCK into INVALID response May 27, 2022
status: Status.INVALID,
validationError: null,
latestValidHash: null,
latestValidHash: ZERO_VALID_HASH,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for opening! looks great. just thinking, could you instead use bufferToHex(zeroes(32))? don't think we need an extra constant really.

@ryanio ryanio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lgtm!

@ryanio
ryanio merged commit 2f42dcf into master May 28, 2022
@ryanio
ryanio deleted the g11tech/invalid-terminal-block branch May 28, 2022 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants