NebulousLabs / Sia-UI

A Graphical Frontend for Sia - https://sia.tech
MIT License
389 stars 119 forks source link

Coins not showing in wallet #581

Open PhABC opened 7 years ago

PhABC commented 7 years ago

Problem

I purchased my first siacoins via Shapeshift.io and I transferred them to the first address generated with my seed, but I don't see them in my wallet.

Information

  1. My wallets are : wallet addresses

    3221da3292ef7e7a395b8f4ae1cf334ded99ac142bbea49679c19c5c3e64f1c4b48312411bb4 5a56b777f8ccf730b62ad959292f178b90dd2b19df1c76f7487c658368f02332853c0523ff9f ef62e8fcf59241f8f7a0c508932f685745c337702532e69528aa4b863642358d531b085306ac

  2. The coins were sent at my third address.

  3. The blockchain is synced : consensus

    Synced: Yes Block: 00000000000000b22c0b85c2706da2ef28c93a828b493c17889d755489e7d2cd Height: 103580 ...

  4. Wallet balance is zero: wallet balance

    Wallet status: Encrypted, Unlocked Confirmed Balance: 0 H Unconfirmed Delta: +0 H Exact: 0 H Siafunds: 0 SF Siafund Claims: 0 H

  5. I am using Windows 10 with sia versions : version

    Sia Client v1.2.1 Sia Daemon v1.2.1

  6. I tried restarting Sia, but no luck. Note that everytime I restart Sia-UI, it says Synchronizing 99.8% and then gets synced after about a minute. Everytime. This might be related, but seems also to be a glitch. I restart faster than a new block can be found.

It also seems like I am not the only user running into this problem.

famadorian 8 days ago I transferred siacoins from poloniex like a week ago and it has not yet appeared in my mike wallet. It says it's synchronized and it's all green clean machine.

ameri-size 10 months ago I have loaded a wallet from a seed key to my current machine. The address has loaded and is listed when I enter siac wallet addresses. However, when I enter siac wallet balance it still shows a 0 balance. On the Sia Explorer it shows the proper balance, so I'm not worried about them missing. I'm just wondering if there is something else I should be doing to display the balance. As of right now, the block height shows synced and the current height is 55711.

lukechampine commented 7 years ago

@pdroalves you need to run the scanner again after syncing. If there are funds associated with the seed, it should find a higher index.

Zoodinger commented 7 years ago

I still cannot see my siacoin balance. I've done all the steps suggested to fix it.

Scanning:

>recover-windows scan
Seed:
Generating keys... Finished in 4.64 seconds.
Scanning blockchain...
Scanned to height 108733 (largest index seen: 0)
Finished scanning. Largest index found: 0
Suggested seed progress: 1

Using checkaddr with my seed and address:

Found address at seed index 3

Rewriting seed:

>recover-windows.exe set 1
Rewrote seed progress from 4 -> 1
The next time you unlock the wallet, it will need to do a full rescan.

Still, nothing.

lukechampine commented 7 years ago

If the address you want is at index 3, you should set your seed progress at least that high. If your blockchain is synced, your seed progress is above 3, and you still don't see your coins, then the coins were not sent to that address.

Zoodinger commented 7 years ago

I did try that, and I verified that the address is working: https://siamining.com/addresses/0bde01089769c3cebafe45a8a0a8627edd95f4a17a42a226cab0d044375138dfc804df0ecc3f

This the same address that I used in checkaddr, and the address I'm using in marlin for mining.

I deleted all files in roaming data and I'm synchronising from scratch again.

Zoodinger commented 7 years ago

It still doesn't work. I'm using the correct seed and address.

lukechampine commented 7 years ago

I've updated my comment above with a new version of recover that can scan the blockchain for an address. It will print a running balance for the specified address. For example:

./recover-linux find 8c8c123091271b68b813d5decb182117148a1b043fbbffa4ba2304311bbf104cbc457eee837e
Scanning blockchain...
Scanned to height 68782 (running balance: 0 H)
Received 2.218 SC at height 70000
Scanned to height 110318 (running balance: 2.218 SC)
Finished scanning 110333 blocks. Final balance: 2.218 SC

I ran this command on my own blockchain (synced to height 110333) and did not find any transactions containing your address.

Zoodinger commented 7 years ago

I followed the steps here: https://mtlynch.io/windows-sia-mining/

I created a new wallet, then got an address from Sia-UI, then modified the bat file of marlin to have that address and started mining. It's not the first address that I got from it that I've been using, but that's not supposed to make any difference. You can see that the mining did happen from the link I posted before: https://siamining.com/addresses/0bde01089769c3cebafe45a8a0a8627edd95f4a17a42a226cab0d044375138dfc804df0ecc3f

I guess it will only show up when I go over 1000 (first payout), is that the case?

Either way, I got confused because it doesn't show the mining on my dashboard, which it's supposed to do (according to the guide). Is this correct? I guess that's a different problem then.

Thank you for your time!

finid commented 7 years ago

@lukechampine, in Linux, what's the location of the consensus.db and transactionpool.db? Looked, but couldn't find them on an installation of Ubuntu 16.04.

By the way, Sia UI is installed, and it's completely synced.

Thanks,

lukechampine commented 7 years ago

If you're using Sia-UI, the default location is ~/.config/Sia-UI/sia. That's the folder from which you should run the recovery tools.

finid commented 7 years ago

Thank you, @lukechampine

paizzj commented 7 years ago

I haven't used Sia for anything other than hosting, and 1855 siacoins has gone. my transaction ID is : 848949a84514d293672f8005ba1461cd1448f292885989d4317aed0076b3ea21

codingoyster commented 7 years ago

@lukechampine

I seem to have tried everything in this thread without success. My problem is a bit different, but symptoms are the same - that is, I'm unable to recover my wallet balance of ~74,000 (or at least not able to see it) from my seed. Here is my experience:

  1. My Windows installation crashed on me. I'm paranoid about my data, so had luckily backed up the wallet.db file along with my seed and password from my previous installation. On my fresh Windows install, I started Sia-UI to let it create the wallet folder. I then shut down Sia-UI and copied over my old wallet.db file. Reopened Sia-UI and was able to successfully login to the wallet using my seed/password. Unfortunately, even after 100% sync and 6-7 hour wait, my balance was zero.
  2. Here's the funky thing. I issued "wallet addresses" in Sia-UI and couldn't see the address that had the 74,000 balance in it. The wallet shows four other addresses, but not "b6b9bfb8e6c8c1cbf37cdaafbd28dec42cc04af8f89e411e5903dfa8bd5cdcfd5f1ca37aebd6".
  3. Here's the original transaction, detailing the transfer of coins. At that time, I was able to see all my coins in Sia-UI in my old Windows installation.
  4. I figured the old wallet.db was causing issues. So decided to start from scratch. Deleted my sia AppData folder. Launched Sia-UI and let it sync 100%. Shut down Sia-UI.
  5. Then began troubleshooting using the utilities you have supplied in this thread.
    .\checkaddr.exe b6b9bfb8e6c8c1cbf37cdaafbd28dec42cc04af8f89e411e5903dfa8bd5cdcfd5f1ca37aebd6
    Seed:
    Generating keys... b6b9bfb8e6c8c1cbf37cdaafbd28dec42cc04af8f89e411e5903dfa8bd5cdcfd5f1ca37aebd6
    Found address at seed index 4
    .\recover-windows.exe scan
    Seed:
    Generating keys... Finished in 6.78 seconds.
    Scanning blockchain...
    Scanned to height 112546 (largest index seen: 4)
    Finished scanning. Largest index found: 4
    Suggested seed progress: 5
    .\recover-windows.exe set 1
    Rewrote seed progress from 5 -> 1
    The next time you unlock the wallet, it will need to do a full rescan.
  6. I then opened Sia-UI and let it sync (took about an hour). Still no coins!!!
  7. Shut down Sia-UI and issued the following command just to make sure.
    .\recover-windows.exe find b6b9bfb8e6c8c1cbf37cdaafbd28dec42cc04af8f89e411e5903dfa8bd5cdcfd5f1ca37aebd6
    Scanning blockchain...
    Scanned to height 105324 (running balance: 0 H)
    Received 74.43 KS at height 105575
    Scanned to height 112346 (running balance: 74.43 KS)
    Finished scanning 112605 blocks. Final balance: 74.43 KS
  8. At this point, I don't to proceed without getting feedback from you. Can you please guide when you get a moment? I have my old wallet.db file, my wallet seed, and my wallet password for troubleshooting.

Thanks!

lukechampine commented 7 years ago

I think you can still recover your coins. You made a mistake here:

    Finished scanning. Largest index found: 4
    Suggested seed progress: 5
.\recover-windows.exe set 1
    Rewrote seed progress from 5 -> 1
    The next time you unlock the wallet, it will need to do a full rescan.

The recovery tool recommend that you set the progress to 5, but you set it to 1. Try running recover-windows.exe set 5 and unlocking the wallet again. Since the address was generated from your seed, and clearly still has coins in it, I have high confidence that your full balance will be restored after setting the progress to 5.

codingoyster commented 7 years ago

@lukechampine

Setting the index to 5 worked like a charm! Thanks for the help. I hope my detailed steps above will prove useful to others.

I also seriously hope that this gets addressed and fixed in the next Sia-UI release. This type of anxiety can't be dealt with easily :).

lukechampine commented 7 years ago

Indeed, it is already fixed in the master branch, and will be included in the next release. :)

MichaelSkami commented 7 years ago

Hello. Today, i withdrew 1574.60000000 coins from the stock exchange. Coins did not come to my wallet for several hours. I decided to make a recovery, after which I did not see even the 2 coins that were before in my wallet. The others did not reach me either. What should I do?

WITHDRAWAL HISTORY

  | Complete | SC | 1574.60000000   | 2017-07-19 11:04:32Address: b058232b9396e9dddaa6dfd205a42fdda08ca65f524fb7c3f8861e6c80319dc2f09858a2eaaeTxid: 2a5b1495d6375aa8c1ac85666da5a2e2574c9c3ccb4ffb240bbfa9bdd9d0ee9c

Fornax96 commented 7 years ago

@MichaelSkami is your wallet synchronized? The transaction is confirmed and the coins are on your address: http://explore.sia.tech/hash.html?hash=b058232b9396e9dddaa6dfd205a42fdda08ca65f524fb7c3f8861e6c80319dc2f09858a2eaae

A recovery from seed requires Sia to rescan the whole blockchain for your addresses, which takes a while.

MichaelSkami commented 7 years ago

@Fornax96 Hello. Yes, I once again made a scan and saw coins in my wallet. Thanks for the answer. Why all transactions take such a long time? It's somewhat unnerving) In other blockchain it's much faster.

Fornax96 commented 7 years ago

@MichaelSkami My transactions usually show up in the receiving wallet in a few seconds. But before a transaction is seen your wallet needs to be completely synchronized, and connected to 8 peers.

Attilino commented 7 years ago

Hi, I just installed SIA-UI and it has been synching and it is at 33.5%...I made the msitake (well I don't know if it was a mistake) to transfer a big amount of ($1,100.00) to one of my SIA addresses (are all those generated all mine? - I got scared here), but it is still not showing up, I guess because of the sync.

Is it supposed to appear in my wallet after the sync? The trnsaction hash cannot be found on the database, am I to worry abot this? It is 0xf4fac7739c9231b196f487f79db98ec5183e6e9e585f821d2ae6dd748989332f

Can anybody comment please? Thanks.

Neer mind, I got the wrong Transaction Hash - I can see it on the blockcahin

fea6b8e27a6a989eca07dde34a82fe93118cbb2b489793fb936d48bb9ef10e51a27f82ef52c8

After the sync, it should appear in my wallet, as well?

I has to restart my computer and when I reran the Sia.exe it says checking for release notes, might take some time....how many hours can it take like this? Am I missing something here?

Please advise

armandocuesta commented 6 years ago

Let me tell you something...unless the SIA people fix this this coin is doomed. I have mined for a week and I think ill stop now that the wallet is giving me so many problems. I like the SIA concept but the wallet is a f disaster.

Ash-Digital commented 6 years ago

Hey All! Running into the same issue. I just scanned this thread and will try some of what was suggested. With that being said, just wanted to post and give a heads up. I just started mining, the payout shows complete but it's only been like 2 days. I will check back on Saturday to see if they are there.

https://explore.sia.tech/hash.html?hash=4f1c3a6ecc8b1933296be8f8215496b71de820fef4e113bfdfe6510a386e6af1

mattkgross commented 6 years ago

I followed the steps with the tool outlined above on OSX.

Suggested seed was 1, and was accordingly set. Even after this and sync/rescan of the blockchain, there is no balance in the wallet. I imagine this would be quite a turn-off for new users attempting to hit the ground running and start using services off the bat.

The transaction is confirmed, FYI: https://explorer.siahub.info/hash/a5a924e5585f04500297cd138b736110ed1442fcf8c0c58d6851f15651377b0b

My desktop client, though indicating it is fully sync'd, indicates it is on block 135019, which is behind this transaction. Re-installs and the recovery tool are seemingly not resolving this sync problem.

Update: I went ahead and tried setup on my Windows machine, as well (on same network as OSX). That machine setup perfectly from the get-go, syncing to the latest block. This makes me think that this may perhaps be an OSX specific syncing issue. I'll perform another re-install in a day or two and see if anything changes.

okraslayer commented 6 years ago

* fixed after a complete reinstall and adding gateways manually via terminal the deposit finally showed.

Started having the this same issue. It's very frustrating to say the least.

Never had this problem with other wallets even ones that were also this new. Any way, what all do I need to back up to be able to reinstall this wallet and give it another go?

Also everytime I hit for receive coins I get a different address that pops up.

I have download the 1.3.1 update and still syncing issue ugh..

Not dissing this project... I wouldnt have bought into if I thought it was a bad idea... Yet when its difficult enough to buy in and then greeted with this sort of wallet it just comes off as very bush league.

mattkgross commented 6 years ago

What solved it for me was gleaning the following from this thread:

Make sure to remove consensus.db and transactionpool.db if doing a reinstall - they are not removed automatically and you'll still be out of sync if you reinstall.

To your point, the most pervasive issue is the peer list. Very frequently, I will be informed of no active peers and have to comb back through the gateway list and manually find and add 2-3 that work (https://siastats.info/nodes.html).

As an FYI, Sia provides you with multiple wallets. But your seed will provide you access to them all. You can also run 'wallet addresses' in the terminal to see all of your public keys. These are the 'random' keys that you're seeing every time you hit Receive. As long as you have your seed, you have your coin.

It appears both the db clean and peer gateway resolution are reproducible and arguably fixable with some simple automation. That being said, that's part of the beauty of open source - anyone can contribute this fix, even you and I. I may take a look in the next few weeks. Hopefully this information at least helps others get on the right path.

Bitcoiner4444 commented 6 years ago

HI,

I have a problem, there was a confirmed payout but I don´t get the SIACOIN to my wallet. All other payout´s went good.

This is the payout:

2018-01-26 00:10 UTC 2,149.49 SC 2aa24fd60c86a86e0cb58ecb2e8826f3992293614e7727bc00989143a2476b19 confirmed

What should I do now?

Thanks for your help.