Skip to content

code: Request value doesn't filter peers with history_min_height <= height #1074

@ancazamfir

Description

@ancazamfir
  • The syncing node does not look at the peer's status history_min_height ending up sending request to a peer that has pruned the height
  • The peer that receives the request for a height it doesn't have will reply with empty response
2025-06-04T00:17:40.192164Z DEBUG node{moniker=actor-app-proposal-0}:sync{height.tip=25 height.sync=26}: Received request for value request.height=1 peer=12D3KooWS5U6trET7DpsEWvQGMQjiJ9p8VQpocxer4L3SMoKEnba2025-06-04T00:17:40.192235Z DEBUG node{moniker=actor-app-proposal-0}:host{height=26 round=0}: Received request for block height=12025-06-04T00:17:40.192480Z  WARN node{moniker=actor-app-proposal-0}:host{height=26 round=0}: No block for this height, available blocks: 15..=25 height=1
2025-06-04T00:17:40.192564Z ERROR node{moniker=actor-app-proposal-0}:sync{height.tip=25 height.sync=26}: Received empty value response from host height=1
2025-06-04T00:17:40.192629Z DEBUG node{moniker=actor-app-proposal-0}:network: Replied to Sync request request_id=1
  • The syncing node receives the response:
2025-06-04T00:29:44.785978Z ERROR node{moniker=actor-app-proposal-2}:network: Failed to decode sync response: MissingField { type_url: "p2p.ValueResponse", field: "certificate" } peer=12D3KooWCsmmFZjWsYs6sTkTmfcAWSzinsktCfR4UCHdxkHk6Xsg

The issue here is that the syncing node is sending the request to a peer known to not have the desired height. The other logs look ok and can still happen when issue is fixed, if pruning occurs between status messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions