`ProcessImport()` has been subject to numerous out-of-order backports.
This has made backporting PR9332 especially difficult. Unfortunately,
backporting only PR9332 causes wallet_importmult.py to fail. The fix
requires reapplying PR14679, but that is dependent on PR14454 which is
then dependent on PR9332 causing a circular dependency. Thus, large diff.
98ea64cf232c34d4b1aebe738b3956191667cd76 Let wallet importmulti RPC accept labels for standard scriptPubKeys (Russell Yanofsky)
Pull request description:
Allow importmulti RPC to apply address labels when importing standard scriptPubKeys. This makes the importmulti RPC less finnicky about import formats and also simpler internally.
Tree-SHA512: 102426b21239f1fa5f38162dc3f4145572caef76e63906afd786b7aff1670d6cd93456f8d85f737588eedc49c11bef2e1e8019b8b2cbf6097c77b3501b0cab1f
Backport of Core PR9332
https://github.com/bitcoin/bitcoin/pull/9332/
Also ProcessImport cleanup
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