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

Refactor MessageFactory, introduce ReferenceProvider and OrphanageManager#2240

Merged
jonastheis merged 48 commits intodevelopfrom
chore/refactor-message-factory
Jun 16, 2022
Merged

Refactor MessageFactory, introduce ReferenceProvider and OrphanageManager#2240
jonastheis merged 48 commits intodevelopfrom
chore/refactor-message-factory

Conversation

@hmoog
Copy link
Copy Markdown
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
Copy Markdown
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


// 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
Copy Markdown
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
Copy Markdown
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 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