Author Topic: Test Net for Advanced Users  (Read 265999 times)

0 Members and 1 Guest are viewing this topic.

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
Thanks clayop.. your brackets on the other post hinted the answer. Xeroc don't worry your instructions are really good.

Another problem, now when I try to start the witness, I get a decimal parse error for --witness-id "1.6.5155"

Code: [Select]
parse_error_exception: Parse Error
Can't parse a number with two decimal places
    {}
    th_a  json.cpp:277 number_from_stream

    {"str":"1.6.5155"}
    th_a  json.cpp:478 from_string
rethrow
    {}
    th_a  witness.cpp:88 plugin_initialize

I have tried to configure the witness-id in the config.ini but I get this warning:

Code: [Select]
3312033ms th_a       witness.cpp:70                plugin_initialize    ] key_id_to_wif_pair: ["GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","wif key"]
3312121ms th_a       thread.cpp:95                 thread               ] name:ntp tid:139624819738368
3312121ms ntp        ntp.cpp:77                    request_now          ] resolving... ["pool.ntp.org",123]
3312121ms th_a       thread.cpp:95                 thread               ] name:p2p tid:139624800855808
3312289ms ntp        ntp.cpp:81                    request_now          ] sending request to 172.82.134.52:123
3312289ms th_a       application.cpp:116           reset_p2p_node       ] Adding seed node 104.200.28.117:61705
3312290ms th_a       application.cpp:128           reset_p2p_node       ] Configured p2p node to listen on 0.0.0.0:53031
3312292ms th_a       application.cpp:178           reset_websocket_serv ] Configured websocket rpc to listen on 127.0.0.1:8090
[b]3312292ms th_a       witness.cpp:143               plugin_startup       ] No witnesses configured! Please add witness IDs and private keys to configuration.[/b]
3312292ms th_a       main.cpp:165                  main                 ] Started witness node on a chain with 0 blocks.
3312292ms th_a       main.cpp:166                  main                 ] Chain ID is cefacd8adb8bee2bf3b757e882d2828297ceb67b1882982cbde882688ecb46a8
3312395ms ntp        ntp.cpp:147                   read_loop            ] received ntp reply from 172.82.134.52:123
3312395ms ntp        ntp.cpp:161                   read_loop            ] ntp offset: 1679989, round_trip_delay 106243
3312395ms ntp        ntp.cpp:177                   read_loop            ] ntp_delta_time updated to 1679989

Any thoughts ?

Note: I am doing this in between family time, hence the delay on the postings
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Oh .. thanks for pointing this out. I will fix the wiki as soon as I get back to my computer .. sorry for the trouble

Don't worry xeroc. I did.
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Oh .. thanks for pointing this out. I will fix the wiki as soon as I get back to my computer .. sorry for the trouble

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
And I also solved it :

The syntax is

Code: [Select]
import_balance betax [5....] true
It is expecting an array as it says in the error doh!

That's the problem what I experienced.
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
And I also solved it :

The syntax is

Code: [Select]
import_balance betax [5....] true
It is expecting an array as it says in the error doh!
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline betax

  • Hero Member
  • *****
  • Posts: 808
    • View Profile
I have to be very silly but I am also stuck on the :

Code: [Select]
7 bad_cast_exception: Bad Cast
Invalid cast from string_type to Array
    {"type":"string_type"}
    th_a  variant.cpp:530 get_array

I am using the wif of the balance,  using the output documented in the wiki:

Code: [Select]
Each of these balances can be investigated via:
BitShares0.9: >>> blockchain_get_balance BTSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
....
"asset_id": 0,                                     <- asset_id (0: BTS)
"data": {
  "owner": "BTSOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWNER", <- address
      ...
  "balance": 0,                                        <- balance
  ...
The required part (the owner of the balance) is denoted as owner. Pick one or more address for BTS balances and dump the corresponding private key(s) with:

BitShares0.9: >>> wallet_dump_private_key BTSOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWNER
"5......." # the <balance wif key>


edit: english code -> english
« Last Edit: August 15, 2015, 05:03:53 pm by betax »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline spartako

  • Sr. Member
  • ****
  • Posts: 401
    • View Profile
wallet_account_set_approval spartako

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
The import process described in the how-to is a stop-gap measure.  We have already done significant work to make that easier.

At the end of the day it will be as easy as:

1. export BTS 1 wallet
2. import into BTS 2
+5%

https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline bytemaster

The import process described in the how-to is a stop-gap measure.  We have already done significant work to make that easier.

At the end of the day it will be as easy as:

1. export BTS 1 wallet
2. import into BTS 2

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
Quote
If you have a mac, download the draft version of BitShares 0.9.2 which has a new api call
https://github.com/bitshares/bitshares/releases/tag/untagged-4166986045ff28284dc4

link doesn't work for me ...
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline Musewhale

  • Hero Member
  • *****
  • Posts: 2881
  • 丑,实在是太丑了 !
    • View Profile
MUSE witness:mygoodfriend     vote for me

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
I finally set up the first testnet delegate :D Server location is Asia, using google computing service.
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
@xeroc
I'm stuck in importing my balance keys. The error is
Code: [Select]
7 bad_cast_exception: Bad Cast
Invalid cast from string_type to Array
    {"type":"string_type"}
    th_a  variant.cpp:530 get_array

Can you help me?


Edit: I found it. [balance wif key]
« Last Edit: August 15, 2015, 08:03:05 am by clayop »
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline VoR0220

https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
Setting up another VPN (as same as my current VPS) now. Hopefully I can successfully settle my testnet delegate there :)
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop