BitShares Forum

Main => Technical Support => Topic started by: bulletproof on September 01, 2015, 05:29:30 pm

Title: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: bulletproof on September 01, 2015, 05:29:30 pm
I am trying to follow the instructions here (https://github.com/cryptonomex/graphene/wiki/CLI-Wallet-Cookbook) and am stumped getting the nathan test account balance to import - docs say he should have 10000000000 CORE assets.

Have built the latest (test2b) tagged testnet, with witness node up (not producing blocks) and cli_client running. Have imported the nathan key;
>>>list_my-accounts now correctly shows the nathan account:
Code: [Select]
[{
    "id": "1.2.53630",
    "annotations": [],
    "membership_expiration_date": "1970-01-01T00:00:00",
    "registrar": "1.2.4",
    "referrer": "1.2.0",
    "lifetime_referrer": "1.2.0",
    "network_fee_percentage": 2000,
    "lifetime_referrer_fee_percentage": 3000,
    "referrer_rewards_percentage": 0,
    "name": "nathan",
    "owner": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [[
          "GPH7T2swLv3QqBAzP1hByB5khUjNFEahtp1fYEHL2GFubMvNGVXyG",
          1
        ]
      ],
      "address_auths": []
    },
    "active": {
      "weight_threshold": 1,
      "account_auths": [],
      "key_auths": [[
          "GPH7T2swLv3QqBAzP1hByB5khUjNFEahtp1fYEHL2GFubMvNGVXyG",
          1
        ]
      ],
      "address_auths": []
    },
    "options": {
      "memo_key": "GPH7T2swLv3QqBAzP1hByB5khUjNFEahtp1fYEHL2GFubMvNGVXyG",
      "voting_account": "1.2.5",
      "num_witness": 0,
      "num_committee": 0,
      "votes": [],
      "extensions": []
    },
    "statistics": "2.6.53630",
    "whitelisting_accounts": [],
    "blacklisting_accounts": []
  }
]


However after following this section in the docs
Code: [Select]
unlocked >>> import_balance nathan [5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3] true I get:

Code: [Select]
1635472ms th_a       wallet.cpp:2805               import_balance       ] balances: []
10 assert_exception: Assert Exception
operations.size() > 0: A transaction must have at least one operation
    {"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"1970-01-01T00:00:00","operations":[],"extensions":[]}}
    th_a  transaction.cpp:51 validate

    {"name_or_id":"nathan"}
    th_a  wallet.cpp:2846 import_balance


Any help much appreciated. Is Nathan broke(n)?!
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: clayop on September 01, 2015, 05:44:31 pm
What is your account? I can send you some CORE.
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: bulletproof on September 01, 2015, 05:48:25 pm
Thanks! "graphene-test" is the one I've set up & registered on 0.9.2 for importing to graphene & testing
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: xeroc on September 01, 2015, 07:00:24 pm
it seems the nathan account is either empty .. either someone else took the funds or the snapshot does not have the nathan funds in them ..
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: clayop on September 01, 2015, 07:10:17 pm
Thanks! "graphene-test" is the one I've set up & registered on 0.9.2 for importing to graphene & testing

Is your account registered? I cannot find your account on the blockchain
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: bulletproof on September 01, 2015, 07:13:39 pm
ok xeroc, many thanks, looked like I missed the nathan boat. Will proceed and import my 0.9.2 accounts instead.

If nathan has been mugged/is permanently defunct I'd suggest the docs reflect this to save others finding this out the hard way  ;)

@clayop - having trouble with that right now, will post to the testnet thread once I've successfully registered it in graphene, thx
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: bulletproof on September 02, 2015, 12:47:24 pm
Think I have a more fundamental problem - no wallet. On running up the cli_client and setting a password shouldn't this create a JSON wallet file in the cli_client dir I specified - I don't have either after running this from the cli_client dir:

Code: [Select]
./cli_wallet -w test1  --chain-id ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3
Trying to import a 0.9.x wif key still fails:

Code: [Select]
>>>import_key "graphene-test" 5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxJ
import_key "graphene-test" 5xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxJ
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:522 get_account

Thanks
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: xeroc on September 02, 2015, 04:13:43 pm
@bulletproof: your graphene-test account is NOT part of the genesis-block .. it seems you have created it too late such that you may end up with a modified account name (maybe the devs have not included those account names yet) .. anyway .. your account name is not part of the genesis block atm .. (your public keys are neither)
Title: Re: Graphene: can't use the Nathan account on public testnet - specifically test2b?
Post by: bulletproof on September 02, 2015, 04:20:31 pm
Ah the penny drops - so I don't get onto the graphene chain unless I made the cutoff for the genesis block (can you advise the date, as maybe one of my earlier registered accounts made it in?).

So, assuming none did and nathan account can't be used, does that mean I can't do any testing in graphene on an account I can control?

Thanks for your patience xeroc, appreciate I'm a newcomer still catching up..