This PR adds a new migration script that checks all unspent coins that have a spentTxid and sets the spentTxid to an empty string. It also checks to verify that the coin is unspent before updating.
This script is mostly a copy of the original (now renamed) migration script.
Location of changes are:
(99) Where the stream query is defined
(136) Catch for when a coin is actually spent - updated to log any records that catch here as this is not expected
(179) Write to file if any "actually spent" coins showed up from our query
Also updated the original migration script to match a uniform naming scheme for the migration scripts and to set the spentTxid when it updates a record. This would be useful to anyone who runs the script in the future though unnecessary if the second migration script is used.
This PR adds a new migration script that checks all unspent coins that have a spentTxid and sets the spentTxid to an empty string. It also checks to verify that the coin is unspent before updating.
This script is mostly a copy of the original (now renamed) migration script.
Location of changes are:
Also updated the original migration script to match a uniform naming scheme for the migration scripts and to set the spentTxid when it updates a record. This would be useful to anyone who runs the script in the future though unnecessary if the second migration script is used.