how do I mark coins spent in invalid blocks as unspent?

1

1

I was just testing bitcoin (v17) in regtest mode with the local, built-in wallet. If I send money to an address (I don't own), generate 1, and then invalidate that block, the local wallet does not mark the coin spent in the invalid block as unspent. It keeps it in the spent state. Rolling back further, generating more blocks on a different chain, and rescaning the transactions doesn't seem to mark that money as unspent again. How do I respend my coin when it was spent in an invalid chain? From the local wallet CLI, is there a way to mark things as unspent?

Brannon

Posted 2019-06-04T14:03:05.643

Reputation: 155

I suspect this is an issue with Bitcoin Core's wallet itself and not something that you are doing wrong.Andrew Chow 2019-06-05T09:20:03.640

No answers