Skip to content

refactor(mempool)!: remove PreUpdate from Mempool interface and move its logic to Lock#3363

Merged
hvanz merged 3 commits intov0.37.xfrom
hvanz/revert-mempool-preupdate-v0.37.x
Jun 28, 2024
Merged

refactor(mempool)!: remove PreUpdate from Mempool interface and move its logic to Lock#3363
hvanz merged 3 commits intov0.37.xfrom
hvanz/revert-mempool-preupdate-v0.37.x

Conversation

@hvanz
Copy link
Collaborator

@hvanz hvanz commented Jun 28, 2024

Complements #3361

This PR partially reverts the backport of #3314 into the recently released v0.37.7. With this change the Mempool interface is the same as in previous versions.

The reason is that we do not want to break the public API. We still keep in the code the feature that #3314 introduced by moving it inside the existing Lock method. We also keep the RecheckFull bool field that we added to ErrMempoolIsFull.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments
  • Title follows the Conventional Commits spec

@hvanz hvanz marked this pull request as ready for review June 28, 2024 15:43
@hvanz hvanz requested a review from a team as a code owner June 28, 2024 15:43
@sergio-mena
Copy link
Collaborator

Checking diff-of-diffs, I see this comment, added to Lock(), has not been backported,

	// Before acquiring the lock, it signals the mempool that a new update is coming.
	// If the mempool is still rechecking at this point, it should be considered full.

Copy link
Collaborator

@sergio-mena sergio-mena left a comment

Choose a reason for hiding this comment

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

Other than the comment about the missing text on Lock(), LGTM 👍

@hvanz
Copy link
Collaborator Author

hvanz commented Jun 28, 2024

Thanks, I added the missing comment.

@hvanz hvanz merged commit 802e87f into v0.37.x Jun 28, 2024
@hvanz hvanz deleted the hvanz/revert-mempool-preupdate-v0.37.x branch June 28, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants