Author Topic: Missing funds after migrating to Bitshares 2.0  (Read 1026 times)

0 Members and 1 Guest are viewing this topic.

Offline qwerty1234

  • Newbie
  • *
  • Posts: 4
    • View Profile
Missing funds after migrating to Bitshares 2.0
« on: June 26, 2017, 11:57:18 am »
I’m hoping someone can help me out. Because I’m at my wits end!

So, I’ve got a bitshares 1.0 backup from 2015 that I’m trying to migrate to a bitshares 2.0 wallet. With an up to date blockchain it's showing I have 21,000 BTS in my bitshares 1.0 account, but no matter what I try, only 790 BTS shows up when I import it into my bitshares 2.0 wallet.

What I don't understand is why 790 BTS is claimable with "lookup balance". I think I only have 1 private key/account associated to the full bts amount, so shouldn't it show either the full amount (21000 BTS) or nothing?

What I have:
bitshares 0.9.3c “BitShares Wallet Backup.json” backup with correct password
bitshares 0.9.3c applications data folder backup with correct password
old protoshares “wallet.dat” backup

What I have tried:
1. This guide: http://docs.bitshares.eu/bitshares/migration/howto-exporting-wallet.html
2. This guide: https://bitsharestalk.org/index.php?topic=18375.0
3. This guide: https://bitsharestalk.org/index.php/topic,20822.0.html
4. Everything in this thread: https://bitsharestalk.org/index.php?topic=9194.60
5. This: https://web.archive.org/web/20150326025854/http://wiki.bitshares.org/index.php/RecoveringFunds
6. Making a new 1.0 wallet and importing the protoshares backup
7. Rescan with latest blockchain, wallet_regenerate_keys <name> 99999, etc
8. Dumped and imported private owner/active keys to bitshares 2.0
9. A whole lotta other stuff.






« Last Edit: June 26, 2017, 11:59:41 am by qwerty1234 »

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Missing funds after migrating to Bitshares 2.0
« Reply #1 on: June 26, 2017, 04:10:41 pm »
What I don't understand is why 790 BTS is claimable with "lookup balance". I think I only have 1 private key/account associated to the full bts amount, so shouldn't it show either the full amount (21000 BTS) or nothing?

I see you have claimed the 21k BTS at some point during BTS-1.0, probably from PTS or AGS. My guess would be that your import includes the private key of that PTS or AGS balance, and the lookup balance is the vesting balance you received in the merger.

In BTS-1, balances were not directly associated with an account but stored using balance keys (similar to bitcoin). In order to claim the amount, you need the private key(s) for this(these) balance(s). For some reason it seems not to be part of your wallet, OR the balance has already been claimed.

You could try to look up your balances in the old client, then export the private keys for these and import them into the new wallet. I don't remember how that could be done in 1.0, but it is possible.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline qwerty1234

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Missing funds after migrating to Bitshares 2.0
« Reply #2 on: June 26, 2017, 08:02:12 pm »
You could try to look up your balances in the old client, then export the private keys for these and import them into the new wallet. I don't remember how that could be done in 1.0, but it is possible.

Thanks for the reply. I've definitely tried something like that before with this: https://github.com/cryptonomex/graphene/wiki/How-To-become-an-active-witness-in-BitShares-2.0.

Using this method, I found the 1 balance ID for the full amount of PTS (21000 PTS), found the owner of that Balance ID, and then dumped the private key for that owner. I'm not quite sure if this is the correct way to do it though, as that only gives me the key for the owner, and all the Balance ID's show the same owner.

Importing that key into 2.0 gives the same result (790 PTS).

I’m 99% sure I haven't claimed the BTS before (shouldn’t claiming it also claim the vesting balance at the same time?), but I’m not ruling out the possibility that it has been claimed in the past... Is it possible to check if the amount has been claimed before?



Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Missing funds after migrating to Bitshares 2.0
« Reply #3 on: June 26, 2017, 08:14:02 pm »
The BTS-2.0 genesis block contains two entries for the owner address BTSNwLj55sEJoAei5SHiw2APoqHh6WhHUULD:
Code: [Select]
{"amount":2304772942,"asset_symbol":"BTS","owner":"BTSNwLj55sEJoAei5SHiw2APoqHh6WhHUULD"}
{"amount":233063721,"asset_symbol":"BTS","begin_balance":437978801,"begin_timestamp":"2014-11-06T00:00:00","owner":"BTSNwLj55sEJoAei5SHiw2APoqHh6WhHUULD","vesting_duration_seconds":63072000}

The first one is a regular balance, the second is a vesting balance. You should have been able to import both using the private key for BTSNwLj55sEJoAei5SHiw2APoqHh6WhHUULD.

Update:
However, checking the balance_objects shows that the first one appears to have been claimed:
Code: [Select]
locked >>> get_object 1.15.96461
get_object 1.15.96461
[
  null
]
locked >>> get_object 1.15.96462
get_object 1.15.96462
[{
    "id": "1.15.96462",
    "owner": "BTSNwMchb3hrCpcocTnHoBWouoLQ8wzRH9Zf",
    "balance": {
      "amount": 6286045,
      "asset_id": "1.3.0"
    },
    "last_claim_date": "1970-01-01T00:00:00"
  }
]

(BTSNwMchb3hrCpcocTnHoBWouoLQ8wzRH9Zf is the genesis balance immediately after BTSNwLj55sEJoAei5SHiw2APoqHh6WhHUULD, which shows that 1.15.96461 would have been yours.)

Similarly, for the vesting balances:
Code: [Select]
locked >>> get_object 1.15.161334
get_object 1.15.161334
[
  null
]
locked >>> get_object 1.15.161335
get_object 1.15.161335
[{
    "id": "1.15.161335",
    "owner": "BTSNwMchb3hrCpcocTnHoBWouoLQ8wzRH9Zf",
    "balance": {
      "amount": 7149545,
      "asset_id": "1.3.0"
    },
    "vesting_policy": {
      "begin_timestamp": "2014-11-06T00:00:00",
      "vesting_cliff_seconds": 0,
      "vesting_duration_seconds": 63072000,
      "begin_balance": 13435590
    },
    "last_claim_date": "1970-01-01T00:00:00"
  }
]

I suppose you have claimed the remaining 790 BTS today, which is a pity, because it would have simplified to pinpoint when the last withdraw was made.
« Last Edit: June 26, 2017, 09:14:17 pm by pc »
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline qwerty1234

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Missing funds after migrating to Bitshares 2.0
« Reply #4 on: June 27, 2017, 12:37:13 pm »
I suppose you have claimed the remaining 790 BTS today, which is a pity, because it would have simplified to pinpoint when the last withdraw was made.

Yep. Last week I tried claiming it out of frustration, hoping the full amount would turn up. Didn’t think that would affect anything though.

How I’m understanding this, is that both the balances have already been claimed in the past (or only the regular balance and not the vesting balance?) and almost all the BTS was claimed/withdrawn from the wallet key, leaving 790 BTS. Is that correct? If that’s the case, is there any hope for recovery? Or should I consider this a lost cause.

Thanks for the help.

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Missing funds after migrating to Bitshares 2.0
« Reply #5 on: June 27, 2017, 07:43:49 pm »
Found it. The balances were claimed almost exactly 1 year ago, in block 7333809, by user "bits00":

https://bitshares.openledger.info/account/bits00/overview/
http://cryptofresh.com/b/7333809

Unless you have the private keys to control that account, you should file it under "lost cause".
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline qwerty1234

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Missing funds after migrating to Bitshares 2.0
« Reply #6 on: June 28, 2017, 09:08:56 am »
Found it. The balances were claimed almost exactly 1 year ago, in block 7333809, by user "bits00":

https://bitshares.openledger.info/account/bits00/overview/
http://cryptofresh.com/b/7333809

Unless you have the private keys to control that account, you should file it under "lost cause".

Thanks for the clarification. My mistake. Mystery solved, I did indeed claim the balance almost exactly 1 year ago. Almost exactly 1 year ago was when my SSD suddenly corrupted, so that explains a lot.

Oh well. Learn from my mistake people, always make multiple backups.