Replaces the -zapwallettxes startup option with a zapwallettxes command in the wallet tool.
To preserve the transaction metadata, using zapwallettxes rewrites the transactions as a zaptx record and removes the original tx record. bestblock is also reset to null to trigger a rescan. On loading the wallet, a rescan will be triggered. If any zaptx records were found, then the metadata from those records is copied to the new tx. All zaptx records are removed after loading. If metadata is not kept (by using -keepmeta=0 in the wallet tool), then no zaptx records will be created.
Lastly -zapwallettxes is replaced with an error telling users to use the wallet tool command instead.