moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

unable to sync #652

Closed lastmeta closed 2 months ago

lastmeta commented 2 years ago

Describe The Bug

Jake (RenewaBlox) — Yesterday at 7:12 PM Hello, glad to be here. My Moontree wallet has not been syncing for a few weeks now regardless of how many times I delete and reinstall the app. I’m willing to provide any info needed to get this working. This began after I imported a wallet that had not originally been created through the app. meta stack — Yesterday at 7:27 PM Thanks for your patience! What kind of wallet was it? Jake (RenewaBlox) — Yesterday at 7:36 PM It was a Raven core wallet I used the typical 12 words to import it meta stack — Yesterday at 7:38 PM Ok so typical derivation path too. So did it ever sync the assets if that wallet or no? Jake (RenewaBlox) — Yesterday at 7:39 PM Assets, yes, but RVN stopped at 140, and I can’t execute any transactions. Image I have had a lot of transactions with this specific wallet over the last year and a half, but i figured a few weeks would’ve been more than enough for it to fully sync to the Moontree app😂 meta stack — Yesterday at 7:43 PM Yeah it could take several minutes if you have a ton of transactions but not weeks! Jake (RenewaBlox) — Yesterday at 7:46 PM Yeah so Wallet 1 was the wallet I created through Moontree, and Wallet 2 was the import. Wallet 1 is also unable to send anything. I’m wondering if it’s a network issue, so I tried switching to RVN Dashboards electrum server today to see if it would help but it didn’t. meta stack — Yesterday at 7:48 PM That's unexpected. Let me see if I can recreate... Jake (RenewaBlox) — Yesterday at 7:53 PM Ping me with the results 👍🏼 thanks

To Reproduce

unable to reproduce yet. steps I tried:

  1. start a new moontree instance, it creates a wallet
  2. create a wallet on ravencore 4.3...
  3. send raven and asset to both
  4. get words from ravencore and import into app
  5. everything works fine

Expected Behavior

something must be failing on the startup process. could that process be failing silently because of a corrupt vout record or something?

Screenshots

No response

lastmeta commented 2 years ago

meta stack — Today at 9:40 AM I haven't been able to recreate your issue yet, but I have a few more questions: you're on android? do you happen to know the version number of the Raven Core you used to make the wallet? was it 4.3.2.1? You said it stopped on 140 RVN, is that an amount or a number of transactions? do you know the most recent transaction txid it shows?

lastmeta commented 2 years ago

it seems to me that we must be running into a transaction that somehow looks different in an unexpected way that we don't handle correctly. we ran into this once before when a transaction was way larger than all previous testing transactions, it exposed a bug that connection code between the server and the client couldn't handle that much data at one time. but we fixed that issue. still I wonder if somehow the transaction it fails on is somehow unexpected and therefore a process never finishes...

I'll keep looking...

lastmeta commented 2 years ago

we should have a coroutine that checks to make sure everything is downloaded within a certain amount of time, like trigger a log or something.

lastmeta commented 2 years ago

kral suggested we could have a no-history mode, but I don't remember why we don't allow tx to be made until history is downloaded. I'll go look through the logic and why.

lastmeta commented 2 years ago

kralverde — Today at 2:57 PM i was able to call all of the api commands with that address so it likely is just a huge download [2:57 PM] especially with mining txs [2:57 PM] those can get quite large [2:58 PM] more so since were using the json format instead of the raw tx

meta stack — Today at 2:58 PM you still think its the server choking on it, not the client?

kralverde — Today at 2:58 PM not anymore [2:58 PM] seems just client [2:58 PM] well [2:58 PM] more like several 100's of MB slowing it down [2:59 PM] network & process wise

meta stack — Today at 2:59 PM I see, so you think it's actually doing what it says, still trying to sync

kralverde — Today at 2:59 PM yes [2:59 PM] unless there was like a memory fault or something that broke silently with all the data [3:00 PM] but i think its just still loading

meta stack — Today at 3:00 PM very intersting, maybe it stops syncing when the app is in the background... so it never finishes?

kralverde — Today at 3:00 PM thats possible

meta stack — Today at 3:00 PM mmm I'll look at that