Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Conversation

@hmoog
Copy link
Contributor

@hmoog hmoog commented Mar 10, 2023

Description of change

This PR merges several different components into a singular streamlined framework for creating, tracking and managing conflicts (and votes on these conflicts).

In the current code base, we have a lot of different components that interact with Conflicts, and synchronizing these components in the context of multi-threading has proven to be a bit hard to achieve, simply because these components do not share access to a common mutex.

This PR aims to change this by merging all components that currently handle Conflicts into a singular streamlined API. This will not only allow us to de-duplicate a lot of code but we can also use the same caches and data structures for all involved parts.

Type of change

  • Enhancement (a non-breaking change which adds functionality)

Change checklist

  • My code follows the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Base automatically changed from feat/modularize-ledger to develop March 10, 2023 08:06
@hmoog hmoog changed the title Merge ConflictDag with vote and weights tracking. Rewrite ConflictDAG Mar 16, 2023
@piotrm50 piotrm50 force-pushed the feat/rewrite-conflictdag-with-voting branch from 91372a8 to bbab455 Compare March 21, 2023 11:37
}

func (f *WeightedSetTestFramework) CreateID(alias string, optWeight ...int64) identity.ID {
validatorID, exists := f.identitiesByAlias[alias]

Check warning

Code scanning / CodeQL

Useless assignment to local variable

This definition of validatorID is never used.
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.

4 participants