Skip to content

Conversation

@meowsbits
Copy link
Contributor

The wantErr field was disused, and the error
returned by ec.HeaderByNumber was not properly
tested.

This simplifies the error checking using
errors.Is and asserts that getting an expected
missing header returns ethereum.NotFound.

Also adds a nil check condition for header.Number
before using big.Int's Sign method.

Date: 2021-03-17 07:57:26-05:00
Signed-off-by: meows [email protected]

The wantErr field was disused, and the error
returned by ec.HeaderByNumber was not properly
tested.

This simplifies the error checking using
errors.Is and asserts that getting an expected
missing header returns ethereum.NotFound.

Also adds a nil check condition for header.Number
before using big.Int's Sign method.

Date: 2021-03-17 07:57:26-05:00
Signed-off-by: meows <[email protected]>
@fjl fjl merged commit aa8b218 into ethereum:master Mar 19, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
The wantErr field was disused, and the error returned by HeaderByNumber
was not properly tested.

This simplifies the error checking using errors.Is and asserts that getting
an expected missing header returns ethereum.NotFound. Also adds a nil
check condition for header.Number before using big.Int's Sign method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants