Page MenuHomePhabricator

ProcessOrphanTx: remove useless done variable
ClosedPublic

Authored by PiRK on Nov 2 2021, 10:37.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC4410964ccce1: ProcessOrphanTx: remove useless done variable
Summary

There is a keyword that allows us to break out of loops. Use it.

There's a small change in behaviour here: if we process multiple orphans
that are still orphans, then we'll only call mempool.check() once at the
end, instead of after processing each tx.

This is a backport of core#19498 [2/5]
https://github.com/bitcoin/bitcoin/pull/19498/commits/55c79a9cefb6c83cdebbf6c538c471607695b457

Depends on D10412

Test Plan

ninja all check-all