Skip to content

Remove RequestBuildBlock on P-Chain Mempool #3705

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

joshua-kim
Copy link
Contributor

@joshua-kim joshua-kim commented Feb 6, 2025

Why this should be merged

This function doesn't seem to belong on the mempool type because consensus is responsible for building the block. I think another alternative would be to put RequestBuildBlock onto a static function somewhere, but I'm not sure where it would live (probably not the mempool package) + I don't think the cost of duplicate code is bad here.

How this works

Removes RequestBuildBlock and replaces the usage of it with usage of the toEngine channel

How this was tested

CI

Need to be documented in RELEASES.md?

No

Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
@joshua-kim joshua-kim force-pushed the remove-request-build-block branch from d91b0c3 to 20cc896 Compare February 6, 2025 18:34
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
@joshua-kim joshua-kim self-assigned this Feb 6, 2025
@joshua-kim joshua-kim added the cleanup Code quality improvement label Feb 6, 2025
@joshua-kim joshua-kim marked this pull request as ready for review February 6, 2025 18:41
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
@Banjosa07

This comment was marked as spam.

@Banjosa07

This comment was marked as off-topic.

Copy link

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

Copy link

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement lifecycle/stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants