diff options
author | Matt Corallo <git@bluematt.me> | 2017-10-19 16:55:31 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-10-31 13:51:30 -0400 |
commit | 015a5258adffb0cf394f387a95ac9c8afc34cfc3 (patch) | |
tree | 8aeccc239b697447c3fce49fa07807175ad798cb /src/test/serialize_tests.cpp | |
parent | 932f118e6a3779bb3d6c3cc83963cf34ac150e42 (diff) |
Reject headers building on invalid chains by tracking invalidity
This tracks the set of all known invalid-themselves blocks (ie
blocks which we attempted to connect but which were found to be
invalid). This is used to cheaply check if new headers build on an
invalid chain.
While we're at it we also resolve an edge-case in invalidateblock
on pruned nodes which results in them needing a reindex if they
fail to reorg.
Diffstat (limited to 'src/test/serialize_tests.cpp')
0 files changed, 0 insertions, 0 deletions