mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

In the wallet, user_transactions can get huge. This problem requires studying

Open TheQuantumPhysicist opened this issue 2 years ago • 1 comments

The "user transactions" refer to the signed transactions that were created by the users and are preserved in the wallet to be rebroadcast until a conflict happens in the blockchain (or the transaction is finally in a block). Currently, we store them as is in the database and retrieve them as a vector. This is a temporary solution with O(N) complexity. This problem should be studied further and must be handled better.

TheQuantumPhysicist avatar Jul 30 '23 07:07 TheQuantumPhysicist

Given that this is an optimization that can happen over a very long period of time, I'll move it out of mainnet milestone.

TheQuantumPhysicist avatar Oct 16 '23 13:10 TheQuantumPhysicist