You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
I noticed that the /tx_history endpoint stopped adding new events after having generated many addresses in my copay wallet. The balance and utxo endpoints were fine. Those showed the new events just fine. I narrowed it down to not querying the blockchain explorer after 100 addresses were generated. The useCachevariable is set to true in my case, and if you follow the code, you see that querying the blockchain for new updates gets skipped if the cache is queried.
It seems that even if the cache is queried for old transactions, the newer transactions still need to be queried. You need some sort of logic that queries the blockchain after some certain height or something like that.
The text was updated successfully, but these errors were encountered:
I noticed that the /tx_history endpoint stopped adding new events after having generated many addresses in my copay wallet. The balance and utxo endpoints were fine. Those showed the new events just fine. I narrowed it down to not querying the blockchain explorer after 100 addresses were generated. The
useCache
variable is set totrue
in my case, and if you follow the code, you see that querying the blockchain for new updates gets skipped if the cache is queried.Look at the
getNormalizedTxs
function ingetTxHistory
:https://github.com/bitpay/bitcore-wallet-service/blob/master/lib/server.js#L3126
It seems that even if the cache is queried for old transactions, the newer transactions still need to be queried. You need some sort of logic that queries the blockchain after some certain height or something like that.
The text was updated successfully, but these errors were encountered: