aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2016-04-20 13:49:55 -0400
committerSuhas Daftuar <[email protected]>2016-04-20 14:19:03 -0400
commit3a99fb2cb14955f5e029d315041a093e957e6c3e (patch)
tree309e1beff538d39a50d33cbb984670fbb5a2e06c /src/init.cpp
parentMerge #7787: [Moveonly] Create ui_interface.cpp (diff)
downloaddiscoin-3a99fb2cb14955f5e029d315041a093e957e6c3e.tar.xz
discoin-3a99fb2cb14955f5e029d315041a093e957e6c3e.zip
Fix headers announcements edge case
Previously we would assert that if every block in vBlockHashesToAnnounce is in chainActive, then the blocks to be announced must connect. However, there are edge cases where this assumption could be violated (eg using invalidateblock / reconsiderblock), so just check for this case and revert to inv-announcement instead.
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions