Main Menu

Test Net for Advanced Users

Started by bytemaster, August 14, 2015, 10:39:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Riverhead

Quote from: xeroc on September 04, 2015, 01:07:58 PM

Maybe I made myself a little unclear .. you need to run a witness_node and a cli_node ..
The setup would look like:


Witness (port 8090)   <--->   cli_wallet (port:8092)  <-----> python

A bit. The directions say not to connect to a witness_node :). I see now you meant not to fire your script against the witness node.

betax

Quote from: bitcard on September 04, 2015, 10:04:51 AM
Quote from: cube on September 04, 2015, 09:38:52 AM
I am joining in the testing.

ID: 1.6.624
Witness Account: 1.2.8112
Account: bitcube

Can someone send me some CORE and vote me in?

how to join? is there any guide?

Check this guide for Ubuntu and test2b https://github.com/cryptonomex/graphene/wiki/How-to-setup-your-witness-for-test-net-(Ubuntu-14.04)
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

xeroc

Quote from: cube on September 04, 2015, 01:27:47 PM
Quote from: Riverhead on September 04, 2015, 12:35:17 PM

The only other thing I can think of is in the witness config.ini file there is a parameter called enable-stale-production which needs to be false. I think that's the default now so that's probably not the issue.

I am using 'enable-stale-production' as described in xeroc's guide.  I am going to try without it.
Sorry for that .. I removed it from the wiki

cube

Quote from: Riverhead on September 04, 2015, 12:35:17 PM

The only other thing I can think of is in the witness config.ini file there is a parameter called enable-stale-production which needs to be false. I think that's the default now so that's probably not the issue.

I am using 'enable-stale-production' as described in xeroc's guide.  I am going to try without it.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

xeroc

Quote from: Riverhead on September 04, 2015, 11:34:31 AM
Quote from: xeroc on September 04, 2015, 11:19:02 AM
you have to run the cli_wallet(!!!) with
-H 127.0.0.1:8092
and unlock your wallet.

My wallet will not run with this flag. Is there anything else needed? My two attempts:


cli_wallet -w test2b --chain-id ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3 -H 127.0.0.1:8092
Logging RPC to file: logs/rpc/rpc.log
2022756ms th_a       main.cpp:111                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2022757ms th_a       main.cpp:115                  main                 ] nathan_pub_key: GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2022757ms th_a       main.cpp:116                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
2022760ms th_a       main.cpp:163                  main                 ] wdata.ws_server: ws://localhost:8090
0 exception: unspecified
Underlying Transport Error
    {"message":"Underlying Transport Error"}
    asio  websocket.cpp:431 operator()

    {"uri":"ws://localhost:8090"}
    th_a  websocket.cpp:616 connect



./cli_wallet -H 127.0.0.1:8092
Logging RPC to file: logs/rpc/rpc.log
2052250ms th_a       main.cpp:111                  main                 ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
2052250ms th_a       main.cpp:115                  main                 ] nathan_pub_key: GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2052250ms th_a       main.cpp:116                  main                 ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 6d2141a7a5577221d3681a4b6296e330f77a4668ddcd78fbbe4fbe966e54bccc (from egenesis)
2052251ms th_a       main.cpp:163                  main                 ] wdata.ws_server: ws://localhost:8090
0 exception: unspecified
Underlying Transport Error
    {"message":"Underlying Transport Error"}
    asio  websocket.cpp:431 operator()

    {"uri":"ws://localhost:8090"}
    th_a  websocket.cpp:616 connect



Maybe I made myself a little unclear .. you need to run a witness_node and a cli_node ..
The setup would look like:


Witness (port 8090)   <--->   cli_wallet (port:8092)  <-----> python

Riverhead


The only other thing I can think of is in the witness config.ini file there is a parameter called enable-stale-production which needs to be false. I think that's the default now so that's probably not the issue.


cube

#725
Quote from: Riverhead on September 04, 2015, 12:14:56 PM

What is your Chain ID? ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3

I show a different vote count for you:


get_witness bitcube
{
  "id": "1.6.624",
  "witness_account": "1.2.8112",
  "last_aslot": 0,
  "signing_key": "GPH7qbi1...y..sn",
  "vote_id": "1:623",
  "total_votes": "64885994140",
  "url": ""
}


Chain ID matches.


{
  "head_block_num": 56624,
  "head_block_id": "0000dd308073d87ccb3b0d739f07ebfb6842e95c",
  "head_block_age": "0 second old",
  "next_maintenance_time": "4 minutes in the future",
  "chain_id": "ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3",
,,,



  "total_votes": "64885994140",


Vote count matches too. Yet I am not in the active list.  What's wrong?
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Riverhead


Is there a way to withdraw witness pay? Would be a good source of testing funds.

Riverhead


What is your Chain ID? ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3

I show a different vote count for you:


get_witness bitcube
{
  "id": "1.6.624",
  "witness_account": "1.2.8112",
  "last_aslot": 0,
  "signing_key": "GPH7qbi1...y..sn",
  "vote_id": "1:623",
  "total_votes": "64885994140",
  "url": ""
}




cube

Quote from: Riverhead on September 04, 2015, 11:52:39 AM

You have way more votes than me - not sure why you don't show up in the list. You still don't have an assigned slot either. Are you sure your witness_node recognizes your keys?

How to be really sure?

I got the public key from the signing key in the command 'get_witness bitcube'.


get_witness bitcube
{
  "id": "1.6.624",
  "witness_account": "1.2.8112",
  "last_aslot": 0,
  "signing_key": "GPxxxx-PUBLICKEY",
  "vote_id": "1:623",
  "total_votes": "64884389452",
  "url": ""
}



I looked up the public-private key pair in dump_private_keys


dump_private_keys
[[
    "GPxxxx-PUBLICKEY",
    "5Jxxx-PRIVATEKEY"
  ],[
    "GPxxxx-PUBLICKEY2",
    "5Jxxx-PRIVATEKEY2"
  ]
]


I entered the key pair into config.ini


# ID of witness controlled by this node (e.g. "1.6.5", quotes are required, may specify multiple times)
witness-id = "1.6.624"

# Tuple of [PublicKey, WIF private key] (may specify multiple times)
private-key = ["GPxxxx-PUBLICKEY","5Jxxx-PRIVATEKEY"]


When I run the witness_node, the log says:


57981ms th_a       witness.cpp:84                plugin_initialize    ] witness plugin:  plugin_initialize() begin
57981ms th_a       witness.cpp:94                plugin_initialize    ] key_id_to_wif_pair: ["GPxxxx-PUBLICKEY","5Jxxx-PRIVATEKEY"]
57982ms th_a       witness.cpp:112               plugin_initialize    ] witness plugin:  plugin_initialize() end
58201ms th_a       application.cpp:228           operator()           ] Initializing database...
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Riverhead

Quote from: cube on September 04, 2015, 11:48:15 AM
Quote from: Riverhead on September 04, 2015, 11:45:01 AM

When you first start your witness node does it give you any errors (in blue) about the pub/priv key pair you specified for your witness?

Your slots being 0 probably means you aren't actually signing blocks however you have votes so your witness is good to go.

I think I found the answer.  It is not voted in yet.  Please help vote it in.

You have way more votes than me - not sure why you don't show up in the list. You still don't have an assigned slot either. Are you sure your witness_node recognizes your keys?


cube

Quote from: Riverhead on September 04, 2015, 11:45:01 AM

When you first start your witness node does it give you any errors (in blue) about the pub/priv key pair you specified for your witness?

Your slots being 0 probably means you aren't actually signing blocks however you have votes so your witness is good to go.

I think I found the answer.  It is not voted in yet.  Please help vote it in.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

Riverhead


When you first start your witness node does it give you any errors (in blue) about the pub/priv key pair you specified for your witness?

Your slots being 0 probably means you aren't actually signing blocks however you have votes so your witness is good to go.

cube

#718
Quote from: Riverhead on September 04, 2015, 10:35:15 AM

The pay_vb shows the vesting balance object ID. If that is accruing funds you're producing blocks.

I think I am connecting to the correct test net but I do not see the 'pay_vb' object.   What did I miss?


info
{
  "head_block_num": 56624,
  "head_block_id": "0000dd308073d87ccb3b0d739f07ebfb6842e95c",
  "head_block_age": "0 second old",
  "next_maintenance_time": "4 minutes in the future",
  "chain_id": "ecbde738ba0b319cb4d266e613b200d010da8b37313c20aec03f9c8e2d9b35e3",
,,,



get_witness bitcube
{
  "id": "1.6.624",
  "witness_account": "1.2.8112",
  "last_aslot": 0,
  "signing_key": "GPxxxxxxaaaaxxxx",
  "vote_id": "1:623",
  "total_votes": "64885994140",
  "url": ""
}


Edit: I think I found the answer.  It is not voted in yet.  Please help vote it in.
ID: bitcube
bitcube is a dedicated witness and committe member. Please vote for bitcube.

bulletproof

Quote from: bytemaster on August 14, 2015, 10:39:33 PM
Download this Aug-14 snapshot of BitShares:

https://drive.google.com/open?id=0B_GVo0GoC_v_S3lPOWlUbFJFWTQ

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

This bit in the OP had a link to a new 0.9.2 release with an API call to export all keys. The link is dead and there are no releases since May - is this a red herring?
Everything is awesome, or if it isn't it ought to be.