Skip to content

Conversation

@sdaftuar
Copy link
Member

@sdaftuar sdaftuar commented May 9, 2018

This was introduced in 015a525 and could cause a node to crash (due to assertion failure) when using the reconsiderblock rpc.

@sdaftuar
Copy link
Member Author

sdaftuar commented May 9, 2018

I think this should be marked for backport.

@sdaftuar sdaftuar force-pushed the 2018-05-fix-reconsider-block branch from 52eef2e to 11fa6bb Compare May 9, 2018 14:40
@maflcko maflcko added this to the 0.16.1 milestone May 9, 2018
@laanwj
Copy link
Member

laanwj commented May 10, 2018

utACK 11fa6bb

2 similar comments
@TheBlueMatt
Copy link
Contributor

utACK 11fa6bb

@sipa
Copy link
Member

sipa commented May 12, 2018

utACK 11fa6bb

@sipa sipa merged commit 11fa6bb into bitcoin:master May 12, 2018
sipa added a commit that referenced this pull request May 12, 2018
…onsiderblock

11fa6bb Bugfix: ensure consistency of m_failed_blocks after reconsiderblock (Suhas Daftuar)

Pull request description:

  This was introduced in 015a525 and could cause a node to crash (due to assertion failure) when using the `reconsiderblock` rpc.

Tree-SHA512: 820dcd761bf983e36f5d0f16777ed75c833daaf62a6b3a4dbd17f6caaf9287223e3a202d06540ac62f8ba72926b73b0873bb76c6273ddcb19d9408f4c1cd325e
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request May 24, 2018
@fanquake
Copy link
Member

Backported in #13317.

HashUnlimited pushed a commit to chaincoin/chaincoin that referenced this pull request Jun 29, 2018
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jan 23, 2021
…ter reconsiderblock

11fa6bb Bugfix: ensure consistency of m_failed_blocks after reconsiderblock (Suhas Daftuar)

Pull request description:

  This was introduced in 015a525 and could cause a node to crash (due to assertion failure) when using the `reconsiderblock` rpc.

Tree-SHA512: 820dcd761bf983e36f5d0f16777ed75c833daaf62a6b3a4dbd17f6caaf9287223e3a202d06540ac62f8ba72926b73b0873bb76c6273ddcb19d9408f4c1cd325e
PastaPastaPasta pushed a commit to dashpay/dash that referenced this pull request Feb 1, 2021
* Merge bitcoin#13199: Bugfix: ensure consistency of m_failed_blocks after reconsiderblock

11fa6bb Bugfix: ensure consistency of m_failed_blocks after reconsiderblock (Suhas Daftuar)

Pull request description:

  This was introduced in 015a525 and could cause a node to crash (due to assertion failure) when using the `reconsiderblock` rpc.

Tree-SHA512: 820dcd761bf983e36f5d0f16777ed75c833daaf62a6b3a4dbd17f6caaf9287223e3a202d06540ac62f8ba72926b73b0873bb76c6273ddcb19d9408f4c1cd325e

* bugfix: Mark all nearest BLOCK_FAILED_CHILD descendants (if any) as BLOCK_FAILED_VALID while removing the invalidity flag from all ancestors in ResetBlockFailureFlags

Fixes `Assertion failed: ((pindex->nStatus & BLOCK_FAILED_MASK) == 0), function CheckBlockIndex`

* tests: Make sure ResetBlockFailureFlags does the job correctly

* Wait for the expected block height, check the final chain tip hash

Co-authored-by: Pieter Wuille <[email protected]>
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants