HomePhabricator

Move recentRejects initialization to top of InitBlockIndex
a8d0407c4fcfUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Move recentRejects initialization to top of InitBlockIndex

This avoids that premature return in the condition that a new chain is initialized
results in NULL pointer errors due to recentReject not being constructed.

Also add assertions where it is used.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Jul 31 2015, 15:55
deadalnixPushed on May 14 2017, 22:04
Parents
rABC0847d9cb5fcd: Keep track of recently rejected transactions
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABCa8d0407c4fcf: Move recentRejects initialization to top of InitBlockIndex (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Jul 31 2015, 15:58