bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.86k stars 2.09k forks source link

Insight fix #3481

Closed escottalexander closed 1 year ago

escottalexander commented 1 year ago

Added a check based on the spentHeight to correctly show an unspent tx as unspent. Currently the way Bitcore Node handles coins that are spent by an invalid transaction is by moving them back to an unspent status (spentHeight = -2) but it does not remove the spentTxid which points to the invalid tx. Bitcore Node may be reworked at some point to better handle this event.

@lanchana Let me know if this solution may be problematic.

kajoseph commented 1 year ago

tACK