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

Fix incorrect prune state of a signed_block issue for v2.1 #10354

Merged
merged 5 commits into from
May 12, 2021

Conversation

nickjjzhao
Copy link
Contributor

@nickjjzhao nickjjzhao commented May 11, 2021

Change Description

The variable prune_state in a signed_block should be updated after some trxs in the block get pruned that happens in prune_trxs(). Otherwise in some situation to_signed_block_v0() will try to convert a signed_block with pruned trxs to a signed_block_v0 , which is not supposed to, due to incorrect state of the variable.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@nickjjzhao nickjjzhao merged commit db097d8 into release/2.1.x May 12, 2021
@nickjjzhao nickjjzhao deleted the jjz-update-prune_state-2.1 branch May 12, 2021 14:22
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