Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix bug in apply_block that constructed and committed blocks with missing signatures in the protocol-feature-foundations branch #6856

Merged

Conversation

arhag
Copy link
Contributor

@arhag arhag commented Mar 1, 2019

Change Description

Resolves #6851.

Fixes a bug in apply_block which constructed a completed block state with a missing signature in the block. The invalid block was then committed into the reversible block database. Also the block_state containing the invalid block was emitted with the accepted_block signal which the net_plugin uses to broadcast the (invalid) block, leading to issues like the one described in #6851.

This PR also adds a unit test to check for this case.

Consensus Changes

API Changes

Documentation Additions

… a missing signature in the block #6851

Also adds unit test to check for this case.
@arhag arhag requested a review from andriantolie March 1, 2019 16:18
arhag added a commit that referenced this pull request Mar 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants