BirthdayResearch / defichain-app

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

Heavy harddisk load when exporting / showing transaction (incl. rewards) #908

Closed MaReCoding closed 3 years ago

MaReCoding commented 3 years ago

Actual behavior:

When I try to export all transactions (including the rewards) the app generates extrem high harddisk loads and it seems as if the wallet reads the whole blockchain. The same happens in the transaction dialog when you check the button "Include rewards"

Expected behavior:

Like in the version 2.3.x, all transactions showed up nearly instantly.

How to reproduce it (as minimally and precisely as possible):

  1. Open wallet
  2. Wait for finishing the sync
  3. Open dialog "Transactions"
  4. Check "Include rewards"
  5. -->Wait nearly 8 minutes (on my PC with a very fast ssd)
  6. Click "Export data"
  7. Check "Include rewards"
  8. Again wait...

What are your environment parameters?

Anything else we need to know?

defichain-bot commented 3 years ago

@MaReCoding: 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/master/.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.
izzycsy commented 3 years ago

Hi @MaReCoding , in v2.4.2 storage has been optimised and should not take up that much any more (~12GB), can you try to Reset & Reindex?

Settings > Show wallet helper options > RESET & REINDEX

Reset   Reindex
nico89-exp commented 3 years ago

I think checkpoints=0 setting re-increases the size. My disk is big enough so that doesn't matter to me.

For me the history issue is similar. The rewards and commissions (r&c) history is important for taxation reasons. So I want it back.

Showing and exporting r&c in the app makes the app very slow. I can export at the end, but R&C are only included for one of my addresses, so several are missing. I think this is linked to the "listaccounthistory" issue in ain by Daniel.

https://github.com/DeFiCh/ain/issues/470

izzycsy commented 3 years ago

Hi @nico89-exp , has it been reduced in the latest v2.5.0? Kindly remember to backup wallet before updating.

Menu bar   Backup Wallet
nico89-exp commented 3 years ago

Hi @izzycsy thanks for getting back. Discload is back to normal when showing transactions. However I still don’t get the full R&C history.

izzycsy commented 3 years ago

Hi @nico89-exp , can you try v2.5.1, a kind reminder to backup wallet before updating. Several users have reported that their tx history is back. Regarding the issue Missing tx history, we can further discuss on the issue there. We would like to keep same issues in one thread. Thank you.