moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

download utxo txs first #544

Closed lastmeta closed 2 years ago

lastmeta commented 2 years ago

Describe The Task

put the ability to download the utxo txs preferentially:

process:

  1. download utxo set -> show totals to user
  2. download utxo txs (missing)
  3. download the rest of the txs (just downloads all currently)

Additional Context

we had a version of this in the last iteration but took it out when we added the newLeaderProcess, so we want to put it back in, now that that one is working well.

lastmeta commented 2 years ago

This will add a new layer of complexity that really isn't worth it. the problems it solves are made obsolete by the new serverside design and it only provides incremental improvement without solving the real issue, (we still need to tell the user they're syncing and must wait to perform a tx if they try to send right away).

lastmeta commented 2 years ago

fyi this is how it was implemented previously https://github.com/moontreeapp/moontree/blob/506233c2fa5a424d2e858773cc5c50637b6bd71c/raven_back/lib/services/download/unspents.dart

see unspentsTxsFetchFirst in unspents.dart and history.dart