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

0 Members and 1 Guest are viewing this topic.

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Okay.  45.55.6.216:1776 is up built on commit 714261b02a55002f05ea647aa29ab3900b490407

« Last Edit: August 20, 2015, 05:39:16 pm by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
It seems for voting you need the ACTIVE_KEY also

Offline Thom

Almost there guys... I think. Running on local system, code built (from scratch) on 8/17. Lauched with:

Code: [Select]
./witness_node --resync-blockchain -d test_net --checkpoint '[40902,"00009fc6d4e24db66e13af461b94063165999bfa"]' --enable-stale-production

All other params in config.ini:
Code: [Select]
#Endpoint for P2P node to listen on
p2p-endpoint = 0.0.0.0:1776

# P2P nodes to connect to on startup (may specify multiple times)
seed-node = 45.55.6.216:1776
#seed-node = 114.92.254.159:62015

# Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.
# checkpoint =

# Endpoint for websocket RPC to listen on
rpc-endpoint = 127.0.0.1:8090

# Endpoint for TLS websocket RPC to listen on
# rpc-tls-endpoint =

# The TLS certificate file for this server
# server-pem =

# Password for this certificate                                             
# server-pem-password =

# File to read Genesis State from
#genesis-json = aug-14-test-genesis.json
genesis-json = aug-19-puppies-test-genesis.json

# JSON file specifying API permissions
# api-access =

# Enable block production, even if the chain is stale.
enable-stale-production = false

# Percent of witnesses (0-99) that must be participating in order to produce blocks
required-participation = false

# Allow block production, even if the last block was produced by the same witness.
allow-consecutive = false

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

# Tuple of [PublicKey, WIF private key] (may specify multiple times)
private-key = ["GPH52ms1dYJko2v5vS3rCdVLzQBogjeDRc1CpkaZ4seC4J4H7Uc71","<private signing key here>"]

# Account ID to track history for (may specify multiple times)
# track-account =

# Track market history by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers
bucket-size = [15,60,300,3600,86400]

# How far back in time to track history for each bucket size, measured in the number of buckets (default: 1000)
history-per-size = 1000

# declare an appender named "stderr" that writes messages to the console
[log.console_appender.stderr]
stream=std_error

# declare an appender named "p2p" that writes messages to p2p.log
[log.file_appender.p2p]
filename=logs/p2p/p2p.log
# filename can be absolute or relative to this config file

# route any messages logged to the default logger to the "stderr" logger we
# declared above, if they are info level are higher
[logger.default]
level=info
appenders=stderr

# route messages sent to the "p2p" logger to the p2p appender declared above
[logger.p2p]
level=debug
appenders=p2p

Tried to vote myself in:
Code: [Select]
unlocked >>> vote_for_witness delegate.verbaltech delegate.verbaltech true true
vote_for_witness delegate.verbaltech delegate.verbaltech true true
893478ms th_a       wallet.cpp:1590               sign_transaction     ] Caught exception while broadcasting transaction with id e29704e03ea31a41fa9c28eb43841e2d55fc080f
0 exception: unspecified
3030001 tx_missing_active_auth: missing required active authority
Missing Active Authority 1.2.22397

Someone care to vote me in please, and comment on anything else you think I need to do.

The build is done on the vps, but unfortunately I need to go. I'm going to leave my witness & cli_wallet running while I'm away. I'll chk back when I return.
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
It looks like dan just pushed a commit that increases minimum witness to 101.  We can run a network that won't die if 4 witnesses go down.  I think we should all build again and start a new network.  I am at work, but I can start a seed node on my VPS.  If someone else that is going to have more time, would like to start a server node instead let me know.

Code: [Select]
commit 8a9120e5179eed2640a8d0b926b7e61980bb42a2
Author: Daniel Larimer <dan@bitshares.org>
Date:   Thu Aug 20 08:47:38 2015 -0400

    increasing the default minimum number of witnesses to 101 for testing

Although looks like 714261b02a55002f05ea647aa29ab3900b490407 is even newer, so thats what I am planning on building[/code]

So you're building 714261b02a55002f05ea647aa29ab3900b490407 ?
yes
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Thom

I just kicked off a new build on a vps. I just wiped the original graphene folders and started from scratch. I presume it's the latest src we're going to use? If not would someone please post what to use instead of this:

Code: [Select]
  git clone https://github.com/cryptonomex/graphene.git
  cd graphene
  git submodule update --init --recursive
  cmake .
  make

Still a bit of a newbie on git ;)
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline clayop

  • Hero Member
  • *****
  • Posts: 2033
    • View Profile
    • Bitshares Korea
  • BitShares: clayop
It looks like dan just pushed a commit that increases minimum witness to 101.  We can run a network that won't die if 4 witnesses go down.  I think we should all build again and start a new network.  I am at work, but I can start a seed node on my VPS.  If someone else that is going to have more time, would like to start a server node instead let me know.

Code: [Select]
commit 8a9120e5179eed2640a8d0b926b7e61980bb42a2
Author: Daniel Larimer <dan@bitshares.org>
Date:   Thu Aug 20 08:47:38 2015 -0400

    increasing the default minimum number of witnesses to 101 for testing

Although looks like 714261b02a55002f05ea647aa29ab3900b490407 is even newer, so thats what I am planning on building[/code]

So you're building 714261b02a55002f05ea647aa29ab3900b490407 ?
Bitshares Korea - http://www.bitshares.kr
Vote for me and see Korean Bitshares community grows
delegate-clayop

Offline Thom

Thx ppuppies. I forget to ask if my build is too stale to use, sounds like it. I'll start another one on a vps.

I will see what happens with launching with the old build here locally...
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
For those who have interest, I started another chain. Chain id is still "5508f5f743717fe2c78445364f62a72badd7532974d26f089af2062228b532eb"
Code: [Select]
./witness_node -s 114.92.254.159:62015  --genesis-json aug-19-puppies-test-genesis.json

OK, finally have some answers, trying to catch up with everyone. Just reviewed several pages of this thread, but can't find the aug-19th genesis download URL. Are we all moving to abit's chain now? I'll add --checkpoint '[40903,"00009fc7e518d750f653ba0ca25a3067bd304f30"]' to the witness startup too.

Still need to get voted in, not sure if 0.9.2 balance migration is necessary at this point tho...
https://www.dropbox.com/s/xzlnoyn4tdpdede/aug-19-puppies-test-genesis.json?dl=0
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
It looks like dan just pushed a commit that increases minimum witness to 101.  We can run a network that won't die if 4 witnesses go down.  I think we should all build again and start a new network.  I am at work, but I can start a seed node on my VPS.  If someone else that is going to have more time, would like to start a server node instead let me know.

Code: [Select]
commit 8a9120e5179eed2640a8d0b926b7e61980bb42a2
Author: Daniel Larimer <dan@bitshares.org>
Date:   Thu Aug 20 08:47:38 2015 -0400

    increasing the default minimum number of witnesses to 101 for testing

Although looks like 714261b02a55002f05ea647aa29ab3900b490407 is even newer, so thats what I am planning on building[/code]
« Last Edit: August 20, 2015, 04:29:08 pm by puppies »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Thom

For those who have interest, I started another chain. Chain id is still "5508f5f743717fe2c78445364f62a72badd7532974d26f089af2062228b532eb"
Code: [Select]
./witness_node -s 114.92.254.159:62015  --genesis-json aug-19-puppies-test-genesis.json

OK, finally have some answers, trying to catch up with everyone. Just reviewed several pages of this thread, but can't find the aug-19th genesis download URL. Are we all moving to abit's chain now? I'll add --checkpoint '[40903,"00009fc7e518d750f653ba0ca25a3067bd304f30"]' to the witness startup too.

Still need to get voted in, not sure if 0.9.2 balance migration is necessary at this point tho...
Injustice anywhere is a threat to justice everywhere - MLK |  Verbaltech2 Witness Reports: https://bitsharestalk.org/index.php/topic,23902.0.html

Offline mudshark79

  • Full Member
  • ***
  • Posts: 76
    • View Profile
I've got a witness in abits chain finally but chain halted now. Nodes don't like my blocks  :-[:
Code: [Select]
2015-08-20T15:55:57 p2p:message read_loop on_closing_connectio ] Peer 46.101.138.170:59332 is disconnecting us because of an error: You offered us a block that we reject as invalid, exception: {"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":
{"level":"error","file":"fork_database.cpp","line":67,"method":"_push_block","hostname":"","thread_name":"th_a","timestamp":"2015-08-20T15:55:56"},"format":"item->num > std::max<int64_t>( 0, int64_t(_head->num) - (_max_size) ): ","data":{}},{"context":{"level":"warn","file":"db_block.cpp","line":176,"method":"_push_block","hostname":"","thread_name":"th_a","timestamp":"2015-08-20T15:55:56"},"format":"","data":{"new_block":{"previous":"0000000000000000000000000000000000000000","timestamp":"2015-08-20T13:02:51","witness":"1.6.71","next_secret_hash":"86b9b6883182c63a63bbcd76fedb0a36d5e569ca","previous_secret":"0000000000000000000000000000000000000000","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":
[],"witness_signature":"203037bdf94500a31b9d890ab55c46f8010f2b4ce8f1e385da149d5529a48b694866730aa203f63f5d75a5fd915cc3925daaa4d37b258a6c67a9fb12b486c2637f","transactions":[]}}},{"context":{"level":"warn","file":"application.cpp","line":379,"method":"handle_block","hostname":"","thread_name":"th_a","timestamp":"2015-08-20T15:55:56"},"format":"","data":{"blk_msg":{"block":{"previous":"0000000000000000000000000000000000000000","timestamp":"2015-08-20T13:02:51","witness":"1.6.71","next_secret_hash":"86b9b6883182c63a63bbcd76fedb0a36d5e569ca","previous_secret":"0000000000000000000000000000000000000000","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"203037bdf94500a31b9d890ab55c46f8010f2b4ce8f1e385da149d5529a48b694866730aa203f63f5d75a5fd915cc3925daaa4d37b258a6c67a9fb12b486c2637f","transactions":[]},"block_id":"00000001e6f900ccb1fe3acf156074820b2e708e"},"sync_mode":true}}]}

Are we all on the same github version? How can I check on this, is there some versioning inside the programs, too?  :)
« Last Edit: August 20, 2015, 04:01:09 pm by mudshark79 »

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Bytemaster is the minimum witness count hard coded or in the genesis?
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
I'm having the hardest time getting on your chain abit


Stuck at work.  So limited access.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline cryptosile

  • Full Member
  • ***
  • Posts: 56
    • View Profile
Bytemaster, on the next testnet would it be possible to use a git tag?  That way a tag refers to a specific commit and is static rather than a dynamic branch. 

....Also, my automated build server will see a tag and build a docker image with the witness binary in about 20 minutes from the commit.

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 4664
    • View Profile
    • Abit's Hive Blog
  • BitShares: abit
  • GitHub: abitmore
Failed to push new blocks. What is exact command?
Yes it's too late, and I'm re-syncing.
In order to keep the chain running, we need at least 8 witnesses online;
in order to rescue the chain we need at least 8 witnesses add the checkpoint parameter to their startup command IN TIME.
BitShares committee member: abit
BitShares witness: in.abit