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

Refactor MessageFactory, introduce ReferenceProvider and OrphanageManager #2240

Merged
merged 48 commits into from
Jun 16, 2022

Conversation

hmoog
Copy link
Contributor

@hmoog hmoog commented Jun 2, 2022

Description of change

This PR refactors the MessageFactory to be easier to maintain and solve the deep spamming reference error.

Type of change

  • Bug fix (a non-breaking change which fixes an issue)
  • 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

jonastheis and others added 30 commits June 2, 2022 11:34
…r/goshimmer into chore/refactor-message-factory
Copy link
Contributor Author

@hmoog hmoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just this one question

@@ -21,7 +21,7 @@ type ParametersDefinition struct {
}

// TangleTimeWindow defines the time window in which the node considers itself as synced according to TangleTime.
TangleTimeWindow time.Duration `default:"2m" usage:"the time window in which the node considers itself as synced according to TangleTime"`
TangleTimeWindow time.Duration `default:"20m" usage:"the time window in which the node considers itself as synced according to TangleTime"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we leave this at 20m?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will change with the new TSC and time concepts release anyway. So imo it doesn't really matter.

@jonastheis jonastheis changed the title Refactor MessageFactory Refactor MessageFactory, introduce ReferenceProvider and OrphanageManager Jun 15, 2022
@jonastheis jonastheis merged commit 04f2020 into develop Jun 16, 2022
@jonastheis jonastheis deleted the chore/refactor-message-factory branch June 16, 2022 07:35
This was referenced Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants