Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: correct parsing of reject messages
Not all reject messages include a data field. This change partially addresses a problem that could lead to a depleted peer set: 1. We send a response to a `getheaders` message; 2. The remote peer `reject`s our `headers` message for some reason; 3. We fail to parse their `reject` message and close the connection; 4. Repeating this process, we have no more peers. This commit fixes (3) but does not address (2).
- Loading branch information