Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beacon block nil body checks #8077

Merged
merged 7 commits into from
Dec 8, 2020
Merged

Add beacon block nil body checks #8077

merged 7 commits into from
Dec 8, 2020

Conversation

terencechain
Copy link
Member

What type of PR is this?

Feature

What does this PR do? Why is it needed?
Helpers such as SignedBeaconBlockHeaderFromBlock and BeaconBlockHeaderFromBlock are missing nil body checks. In the event of block with nil body get used, the process will just panic.

Which issues(s) does this PR fix?

Fixes # N/A

Other notes for review

@terencechain terencechain added the Ready For Review A pull request ready for code review label Dec 8, 2020
@terencechain terencechain self-assigned this Dec 8, 2020
@terencechain terencechain requested a review from a team as a code owner December 8, 2020 18:03
@rauljordan rauljordan merged commit c5770a2 into develop Dec 8, 2020
@terencechain terencechain deleted the blockutil-nil-checks branch February 15, 2021 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants