Author Topic: Importing from OpenLedger to CLI  (Read 4964 times)

0 Members and 1 Guest are viewing this topic.

Offline bitsandtea

  • Newbie
  • *
  • Posts: 12
    • View Profile
Thanks xeroc for the quick reply.

I erased everything and went for the tutorial. I have managed to set up the witness client and the CLI wallet to connect to it however when I try to

Code: [Select]
>>> import_key <name> "<wifkey>"

I get the usual

Code: [Select]
10 assert_exception: Assert Exception
rec && rec->name == account_name_or_id:
    {}
    th_a  wallet.cpp:597 get_account

Here is the log from the start of my CLI Wallet:

Code: [Select]
ubuntu@ip-172-31-6-75:~/graphene-testnet$ programs/cli_wallet/cli_wallet --wallet-file my-wallet.json -s ws://127.0.0.1:11011 -H 127.0.0.1:8090 -r 127.0.0.1:8099
Logging RPC to file: logs/rpc/rpc.log
2697730ms th_a       main.cpp:120                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2697730ms th_a       main.cpp:124                  main                 ] nathan_pub_key: TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2697730ms th_a       main.cpp:125                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 4c47711041b79fe91ffe56cf5a7ae3d7ab7cdcd48bd04fa1714690e72afc058a (from egenesis)
2697730ms th_a       main.cpp:172                  main                 ] wdata.ws_server: ws://127.0.0.1:11011
2697731ms th_a       main.cpp:177                  main                 ] wdata.ws_user:  wdata.ws_password: 
Please use the set_password method to initialize a new wallet before continuing
2697733ms th_a       main.cpp:218                  main                 ] Listening for incoming RPC requests on 127.0.0.1:8099
2697733ms th_a       main.cpp:243                  main                 ] Listening for incoming HTTP RPC requests on 127.0.0.1:8090
2697734ms th_a       thread.cpp:95                 thread               ] name:getline tid:139793365006080
new >>> set_password supersecret
set_password supersecret
null
locked >>> unlock supersecret
unlock supersecret
null


Here is the terminal output from witness node launch

Code: [Select]
ubuntu@ip-1X-X-X-X:~/graphene-testnet/programs/witness_node$ ./witness_node --enable-stale-production \ --data-dir data/testnet
2686398ms th_a       witness.cpp:89                plugin_initialize    ] witness plugin:  plugin_initialize() begin
2686398ms th_a       witness.cpp:99                plugin_initialize    ] key_id_to_wif_pair: ["TEST6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]
2686398ms th_a       witness.cpp:117               plugin_initialize    ] witness plugin:  plugin_initialize() end
2686398ms th_a       object_database.cpp:94        open                 ] Opening object database from /home/ubuntu/graphene-testnet/programs/witness_node/witness_node_data_dir/blockchain ...
2686408ms th_a       object_database.cpp:100       open                 ] Done opening object database.
2686408ms th_a       thread.cpp:95                 thread               ] name:ntp tid:140358732707584
2686408ms th_a       thread.cpp:95                 thread               ] name:p2p tid:140358715922176
2686555ms th_a       application.cpp:147           reset_p2p_node       ] Adding seed node 46.101.188.80:11010
2686555ms th_a       application.cpp:158           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:11010
2686556ms th_a       application.cpp:210           reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:11011
2686556ms th_a       witness.cpp:122               plugin_startup       ] witness plugin:  plugin_startup() begin
2686556ms th_a       witness.cpp:139               plugin_startup       ] No witnesses configured! Please add witness IDs and private keys to configuration.
2686556ms th_a       witness.cpp:140               plugin_startup       ] witness plugin:  plugin_startup() end
2686556ms th_a       main.cpp:179                  main                 ] Started witness node on a chain with 0 blocks.
2686556ms th_a       main.cpp:180                  main                 ] Chain ID is 4c47711041b79fe91ffe56cf5a7ae3d7ab7cdcd48bd04fa1714690e72afc058a
2697731ms th_a       database_api.cpp:199          database_api_impl    ] creating database api 58474896
2697731ms th_a       database_api.cpp:199          database_api_impl    ] creating database api 58498816


Let me know if there is anything else I can try

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Take a look at these docs:
http://docs.bitshares.eu/testnet/public-testnet-howto.html
Some steps can be omitted as they show how to deploy a new blockchain, but the docs also show how to deploy a new faucet and web wallet.

Offline bitsandtea

  • Newbie
  • *
  • Posts: 12
    • View Profile
Hello,

I am ultimately trying to setup a faucet for the main bitshares blockchain.

In order to do that I have created and funded an account using https://bitshares.openledger.info and shapeshift to fund it with BTS.
When I am trying to import it using private key into my CLI wallet it is saying that it cannot find the account name. In the CLI wallet I have set up, when I list all assets it only shows one, and getting accounts is impossible which is making me believe that my witness node and CLI wallet are not synced with the actual blockchain.

What would be the best course of action for me to be able to

1. Sync my CLI Client with the latest state of the blockchain

Thanks,