Skip to content

Refactor MessagePool to use non-blocking resolve_to_deterministic_address_at_finality_async #7308

Closed

Description

@hanabi1224

Summary

PR #7289 ("fix: make load_required_tipset_by_height non blocking") introduced a new ProviderExt::resolve_to_deterministic_address_at_finality_async method in src/message_pool/msgpool/provider.rs, which wraps the existing blocking Provider::resolve_to_deterministic_address_at_finality in tokio::task::spawn_blocking.

MessagePool still calls the blocking resolve_to_deterministic_address_at_finality directly. Updating all call sites in MessagePool to use the new async variant was intentionally left out of PR #7289 to avoid bloating that PR, per the discussion below.

Rationale

Consuming the async variant in MessagePool will make message pool operations that resolve deterministic addresses at finality non-blocking, consistent with the broader goal of PR #7289 (making load_required_tipset_by_height and related tipset lookups non-blocking end-to-end).

Affected areas

  • src/message_pool/msgpool/provider.rs (already contains ProviderExt::resolve_to_deterministic_address_at_finality_async)
  • MessagePool and any other call sites currently using the blocking Provider::resolve_to_deterministic_address_at_finality

Acceptance criteria

  • All relevant MessagePool call sites that resolve deterministic addresses at finality use resolve_to_deterministic_address_at_finality_async instead of the blocking method.
  • No blocking calls to resolve_to_deterministic_address_at_finality remain on async execution paths within MessagePool.

References

Activity

  1. added
    Type: Task
    on Jul 7, 2026
  2. self-assigned this
    on Jul 8, 2026
  3. moved this from New to Ready in Forest Backlog 🌲on Jul 8, 2026
  4. changed the title [-]Refactor MessagePool to use non-blocking `resolve_to_deterministic_address_at_finality_async`[/-] [+]refactor: make MessagePool address resolution at finality non-blocking[/+] on Jul 9, 2026
  5. changed the title [-]refactor: make MessagePool address resolution at finality non-blocking[/-] [+]Refactor MessagePool to use non-blocking resolve_to_deterministic_address_at_finality_async[/+] on Jul 9, 2026
  6. moved this from Ready to In progress in Forest Backlog 🌲on Jul 9, 2026
  7. moved this from In progress to In review in Forest Backlog 🌲on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Task

Type

No type

Fields

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions