RFC: Local Transaction Mempool #4035
Labels
kind/feature
New feature request
needs/area
Needs area label(s)
needs/priority
Needs a priority label
needs/triage
Waiting for triage to be accepted
What would you like to be added and why is this needed:
Currently, the wallet only supports one transaction at a time. If a user tries to send a second transaction while the first transaction is still pending, the second transaction will fail. This is because the wallet is not able to handle multiple transactions at the same time since no "mempool" is implemented on the wallet.
Transaction confirmation can take up to 10 minutes and being bottleneck by a single transaction is not ideal. This RFC proposes a local transaction mempool that will allow the wallet to handle multiple transactions at the same time.
How this can be implemented:
By editing this piece of code:
defichain-wallet/mobile-app/app/api/wallet/index.ts
Lines 21 to 25 in 05cf4cf
By design, JellyfishSDK uses a provider pattern for UTXO to allow the user to choose which UTXO provider they want to use. The default UTXO provider is the
WhalePrevoutProvider
which is a remote only provider. This means that the wallet will only be able to spent on confirmed UTXOs.Instead of using the default
WhaleWalletAccountProvider
, we could extend the implementation.Create custom
WhaleWalletAccountProvider
that uses the local mempool:Other concerns?
We should have a UI to show the Mempool transactions and allow the user to:
The text was updated successfully, but these errors were encountered: