Author Topic: Solved - Can't get balances, after regenerating, and both owner/active priv key  (Read 994 times)

0 Members and 1 Guest are viewing this topic.

julian1

  • Guest
This is resolved.

I used import_accounts, import_keys then dump_private_keys and reformatted the json to include only the wifs.  Then import_balance using the array of wifs.

My mistake was thinking that import_balance only needed the owner/active wifs, due to an assumption that the wallet already has all keys after the key import.

julian1

  • Guest

bump

I've tried a lot of permutations of the above with the same result.

julian1

  • Guest
Ubuntu 14.04, 0.9.3c client synched.

I've tried with original keys and with regnerated keys.

Quote
wallet_regenerate_keys julian1 10500
wallet_export_keys /home/xxxx/mywallet_regenerated.json
...
> wc -l mywallet_regenerated.json
63040 mywallet_regenerated.json

> grep account mywallet_regenerated.json
  "account_keys": [{
      "account_name": "",
      "account_name": "julian1",

Bitshares-2 client was built yesterday and appears in sync. No errors on import,
Quote
>>> import_accounts  /root/docker/mywallet_regenerated.json "mypass"
...
unlocked >>> import_balance julian1  [myprivkey] true
3418275ms th_a       wallet.cpp:3184               import_balance       ] balances: []
import_balance julian1  [] true
[]
unlocked >>> list_account_balances julian1
list_account_balances julian1

unlocked >>>

I believe owner_key is the same as the active_key for this account. AEg,
Quote
jq '.'  ./genesis.json | grep -C 3 julian1
    {
      "active_key": "BTS5WhZ1jAotW5RnXfrn6yCpenZLM86eiEtEd1gKeP26ZDny9oZUb",
      "is_lifetime_member": false,
      "name": "julian1",
      "owner_key": "BTS5WhZ1jAotW5RnXfrn6yCpenZLM86eiEtEd1gKeP26ZDny9oZUb"
    },




Any help appreciated.
« Last Edit: October 16, 2015, 01:41:10 am by julian1 »