BirthdayResearch / defichain-app

DeFi Blockchain desktop app for Windows, Linux and Mac.
https://defichain.com
MIT License
156 stars 57 forks source link

Defi Wallet 2.15/2.16 very slow with transaction #1211

Open angelocastiglione opened 2 years ago

angelocastiglione commented 2 years ago

Hi everyone, i report that since I updated the Defi Walle Desktop 2.15 and also 2.1.6 app, I find that it is very slow in processing transactions.

For example, once I have completed the synchronization and try to send DFI tokens the "continue" button remains grayed out for a couple of minutes.

After being able to send the tokens I have to wait quite a few minutes to make a new send and this did not happen before.

Even in the simple sending of DFI as UTXO to another address it is not as immediate as before.

Even when I just want to look at the transaction history I have to wait a couple of minutes before seeing the screen.

Very important thing I have for further security in this version 2.16 deleted the ".defi" folder and downloaded the blockchain using the latest snapshot.

With the getconnectioncount command the console tells me the result 8. This problem did not happen to me with version 2.14 before the fork, and the PC used is always the same.

Have you also encountered this problem? What do you think about it?

I have open also a reddit post https://www.reddit.com/r/defiblockchain/comments/vx42zf/defi_wallet_215216_very_slow_with_transaction/

log.zip

github-actions[bot] commented 2 years ago

@angelocastiglione: Thanks for opening an issue, it is currently awaiting triage.

The triage/accepted label can be added by foundation members by writing /triage accepted in a comment.

In the meantime, you can:

  1. Checkout DeFiChain’s Github issue page to see if your issue has already been reported
  2. Submit any logs if you have them, this will greatly expedite the process for us.
  3. You can also join our Telegram or Reddit community channels.
Details I am a bot created to help the [DeFiCh](https://github.com/DeFiCh) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/DeFiCh/app/blob/main/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [DeFiCh/oss-governance-bot](https://github.com/DeFiCh/oss-governance-bot) repository.
Zettt commented 2 years ago

I have the same issue. Just found out where the actual bug seems to be.

After sending a transaction, clicking the "Back to Wallet" button causes defid to spin up, and (I believe) wait for the transaction to be confirmed on the blockchain, before the CPU utilization goes back down to a normal level again.

But when you click "Balances" on the left hand side, instead of "Back to Wallet", it circumvents this behavior for some reason.

Please verify if that is causing your issue too, and we're one step closer to getting this fixed.

thedoublejay commented 2 years ago

Hi we're investigating on it.

thedoublejay commented 2 years ago

Hi @Zettt @angelocastiglione, I think the bottleneck now is the listaccounthistory which is called on Transactions page. Unfortunately, they are still working around a fix on it. In the meantime, I have released 2.7.1. After sending, it will go directly to token page instead of transactions. To prevent calling listaccounthistory.

angelocastiglione commented 2 years ago

Hi @Zettt @angelocastiglione, I think the bottleneck now is the listaccounthistory which is called on Transactions page. Unfortunately, they are still working around a fix on it. In the meantime, I have released 2.7.1. After sending, it will go directly to token page instead of transactions. To prevent calling listaccounthistory.

I will test today and i report here. Thanks

nico89-exp commented 2 years ago

So far I can confirm that not getting to any "history" tab works. When going ot it the node crashes immedeately for me and the blockchain data is corrupt.

angelocastiglione commented 2 years ago

@thedoublejay

Ok thanks for relase this new vesion. I have try to use 2.7.1 and i have sent token UTXO DFI without wait (super fast)

After sending automatically will retun on main page and ready to send another my token time without wait.

Thanks

nico89-exp commented 2 years ago

@thedoublejay Wouldn’t It make sense to temporarily disable all the transaction pages while this is buggy? If you do a wrong click the node crashes and needs to be synced again. For example every click on a token that normally directs to the transactions page could simply point back to the general wallet page. And as well for the general Transactions page. I guess this would not be too much effort to fix or?