bitpay / bitcore

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

Add script to sync wallets in coins and txns #3578

Closed kajoseph closed 1 year ago

kajoseph commented 1 year ago

There was an problem where the wallets array on Transactions were not being populated with the wallet ObjectIds, but the Coin's wallets were. The end result of this problem is that wallet users do not see some transactions in their wallet's tx history, but the balance and list of UTXOs is correct.

This PR adds a script which uses the Coin's wallets to populate the Txns' withing a block window.