-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet unconfirmed and mempool is empty #279
Comments
@bokobza, this would happen when a transaction had been built and There won't be anything in the mempool due to the fact that all the signatures would not yet have been collected at that point. Once all signatures are collected the transaction would then be broadcast and the mempool would become non-empty. Unfortunately, in the code that the store has to support, the signature collection is asynchronous so that we need to protect the transaction's UTXO's while signatures are being collected. We also have the situation where the transaction hash changes each time a signature is added so we may need to update the wallet to keep things aligned. This is one of the things I had on my mind when I mentioned that we will probably be doing a lot of simplification in the future. ;) |
I think we should not use the wallet for the pending UTXOsat all, they should get a separate store for that, once a trx is signed and broadcast you can push it out and update the wallet. This is also to avoid that the member be stuck on a UTXO that got processed by another member |
Not sure why we should not use the wallet, seeing that its the wallet we need to affect. Why have another store and a parallel set of logic? Not sure how that will happen seeing that these transactions remain local until ready. Are you sure this is happening vs some signing issue? Having said that, here is how I think it should work:
|
The reason it feels wrong to use the wallet is that, normally when there is an unconfirmed balance then there is an equivalent trx in mempool, not having it this way feels a bit odd. |
The wallet gets in a state where the coins are unconfirmed, but the mempool is empty, meaning that nothing has been broadcasted.
I believe this is due to the CrossChaintransferStore changing the state of the wallet. This is not the right place to do it. The wallet should only get changed when a transaction has been boradcasted to the network.
This needs changing asap.
The text was updated successfully, but these errors were encountered: