Partial Merge #14454: ProcessImport() cleanup (excluding witness)
Summary:
Partial backport of Core PR14454
https://github.com/bitcoin/bitcoin/pull/14454/commits/f6ed748cf045d7f0d9a49e15cc0c0001610b9231
https://github.com/bitcoin/bitcoin/pull/14454/commits/c11875c5908a17314bb38caa911507dc6401ec49#diff-3dfbfa462305488434b8d8da81f99de7R99-R111
Depends on D6061
Test Plan:
ninja ninja check ninja check-functional
Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix
Subscribers: deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6051