threefoldtecharchive / threefold-wallet-electron

An electron-based Desktop Wallet
Apache License 2.0
0 stars 3 forks source link

Issue: When a user has more than 300 transactions a lot of data has to be parsed #289

Closed tobiaschielens closed 4 years ago

tobiaschielens commented 4 years ago

Description: When having 300+ transactions the 3botconnect app is getting slow. The reason for this is that every transaction has to be parsed in the frontend. These transactions have a lot of unused information that could be stripped out.

Potential fix: Strip out unused fields

Fields we use: -- Foreach Account account.chain_info.chain_height

-- Foreach wallet wallet.balance wallet.balance.coins_unlocked wallet.balance.coins_locked wallet.balance.unconfirmed_coins_total wallet.balance.transactions wallet.balance._chain_type.currency_unit wallet.wallet_name wallet.wallet_index wallet.start_index wallet.address

--Foreach Transaction transaction.confirmed transaction.timestamp transaction.lock transaction.lock_is_timestamp transaction.recipient transaction.senders transaction.fee transaction.message transaction.inputs transaction.outputs transaction.id

-- Foreach input in transaction input.lock

-- Foreac output in transaction outputs.lock outputs.is_fee output.amount

DylanVerstraete commented 4 years ago

This issue is related to the tfchain client used in threefold-wallet-electron.

Relevant link: https://github.com/threefoldtech/threefold-wallet-electron/tree/master/src

tobiaschielens commented 4 years ago

As discussed with Rob, we would receive a stripped down version of the API.

DylanVerstraete commented 4 years ago

Moved issue to: https://github.com/threefoldtech/threefold-wallet-electron/issues/289

gmachtel commented 4 years ago

Issue won’t be solved for tfchain. Stellar services don’t have this issue.