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

[DO NOT MERGE] fix: fix input_mmr type #3195

Closed

Conversation

SWvheerden
Copy link
Collaborator

Description

Currently, the input_mmr is of type MutableMmr and this includes a bitmap. The input_mmr does not need a bitmap only needs a mountain range this fixes the typing to be MerkleMountainRange

Motivation and Context

How Has This Been Tested?

Checklist:

  • I'm merging against the development branch.
  • I have squashed my commits into a single commit.

Co-authored-by: Stan Bondi <sdbondi@users.noreply.github.com>
@stringhandler stringhandler added W-consensus_breaking Warn - A change requiring a hard fork to be activated P-do_not_merge Process - Not ready for merging labels Aug 30, 2021
sdbondi added a commit to sdbondi/tari that referenced this pull request Sep 20, 2021
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)

Network - DHT messaging protocol:
On weatherwax: no change, fully compatible
On all other networks: protected from header malleability
sdbondi added a commit to sdbondi/tari that referenced this pull request Sep 21, 2021
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)
sdbondi added a commit to sdbondi/tari that referenced this pull request Sep 21, 2021
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)
sdbondi added a commit to sdbondi/tari that referenced this pull request Sep 21, 2021
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)
sdbondi added a commit to sdbondi/tari that referenced this pull request Sep 21, 2021
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)
aviator-app bot pushed a commit that referenced this pull request Sep 21, 2021
… compatibility (#3372)

Description
---
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (#3195)

Misc

- Add missing kernel order block validation
- Removed unnecessary transaction body sorting in wallet, it (still) is the responsibility of the GetNewBlockTemplate to assemble a final sorted block body.

Motivation and Context
---
Allow consensus breaking code to be merged without hard forking weatherwax. 
Igor will have to be reset.

To follow in subsequent PR: network breaking changes from DHT header malleability fix (#3243 ) 

How Has This Been Tested?
---
Archival sync weatherwax node from scratch, received propagated blocks
Washing machine between two weatherwax wallets
@sdbondi
Copy link
Member

sdbondi commented Sep 22, 2021

Changed included in #3372. Closing

@sdbondi sdbondi closed this Sep 22, 2021
@SWvheerden SWvheerden deleted the sw-update_input_mmr branch January 17, 2022 07:07
sdbondi added a commit to sdbondi/tari that referenced this pull request Feb 3, 2022
Block v1 (compatible with weatherwax at all heights):
- Kernel ordering using every kernel field
- Input MR commits to empty serialization of bitmap

Block v2 (Igor, breaking change)
- Kernel ordering (tari-project#3193)
- Input MR uses input hashes only without extaneous empty bitmap bytes
  (tari-project#3195)

Network - DHT messaging protocol:
On weatherwax: no change, fully compatible
On all other networks: protected from header malleability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-do_not_merge Process - Not ready for merging W-consensus_breaking Warn - A change requiring a hard fork to be activated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants