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
Under certain conditions a wallet will run out of memory when syncing.
Reproduce
It's somewhat difficult to reproduce this case. For the process to be out-of-memory, the rate that the wallet processes and adds blocks needs to be slower than the rate that blocks are added to the chain. This set of conditions are likely more relevant to an SPV node and wallet, however it could apply in any case. What happens is that there are many transactions and blocks that pile up in memory in a queue. That queue is the jobs field of the txLock from bmutex in the wdb database .
The text was updated successfully, but these errors were encountered:
Use emitAsync and an async function for the wallet adding blocks, similar to how chain will wait for the indexers. This will only work when the wallet is in the same process as a plugin, and not when the wallet is running as a separate process. This can work as a temporary solution for the SPV node.
Summary
Under certain conditions a wallet will run out of memory when syncing.
Reproduce
It's somewhat difficult to reproduce this case. For the process to be out-of-memory, the rate that the wallet processes and adds blocks needs to be slower than the rate that blocks are added to the chain. This set of conditions are likely more relevant to an SPV node and wallet, however it could apply in any case. What happens is that there are many transactions and blocks that pile up in memory in a queue. That queue is the
jobs
field of thetxLock
frombmutex
in thewdb
database .The text was updated successfully, but these errors were encountered: