Skip to content

client: Preimage not seen until it's too late. #3184

@JoeGruffins

Description

@JoeGruffins

This is a seemly random occurrence, the client will get a preimage request but it does not log that it received it until after piTimeout has already passed. It attempts to respond with the preimage, but the server has already revoked and forgotten about the match. The client sends the response and gets No handler found for response: {"type":2,"id":2558,"payload":{"result":null,"error":{"code":32,"message":"unknown response ID"}},"sig":""}

I believe there was a report of this from someone using the mm bots. I assume this has something to do with long ticks blocking incoming messages. The following are partial logs from a loadbot that hit this situation on simnet. search for order 70cc9fc064cd376a3ae0203c899a1cd7917f4f4a136f1d3a891d7bffb5de2782

loadbot
server

Preimage request sent by server at 19:14:00 but the client does not see it until 19:14:28 while the server already revoked at 19:14:21. This is one machine so there is no latency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug or bugfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions