HomePhabricator

Fix handling of invalid headers

Description

Fix handling of invalid headers

Summary:
We only disconnect outbound peers (excluding HB compact block peers and manual
connections) when receiving a CACHED_INVALID header.

This is a partial backport of Core PR15141 : https://github.com/bitcoin/bitcoin/pull/15141/commits/6b34bc6b6f54f85537494cbea3846d5d195a06d9

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D6727

Details

Provenance
Suhas Daftuar <sdaftuar@gmail.com>Authored on Jan 15 2019, 20:54
deadalnixCommitted on Jun 25 2020, 12:07
deadalnixPushed on Jun 25 2020, 12:07
Reviewer
Restricted Project
Differential Revision
D6727: Fix handling of invalid headers
Parents
rABC0855a1adc243: [CI] Allow for setting environment variables from the configuration file
Branches
Unknown
Tags
Unknown