BitShares Forum

Main => General Discussion => Topic started by: abovebeyond on June 27, 2016, 12:45:29 pm

Title: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on June 27, 2016, 12:45:29 pm
Hi I am wondering if there is a tutorial or documentation to take your private test net to go public?
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: xeroc on June 27, 2016, 02:44:07 pm
http://docs.bitshares.eu/testnet/public-testnet-howto.html
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on June 27, 2016, 03:22:13 pm
should I replace these :

"name": "init5",
      "owner_key": "TEST7ESZdEmWAutKcsoykpiG5uFQ1oTiSrzofNdRCZh1QuDzsngkpT",
      "active_key": "TEST7ESZdEmWAutKcsoykpiG5uFQ1oTiSrzofNdRCZh1QuDzsngkpT",
      "is_lifetime_member": true


with my own keys?
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: xeroc on June 27, 2016, 03:26:43 pm
all of those keys .. yes ..
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 01, 2016, 07:33:28 pm
These keys should be secp256k1 keys?

base58 addresses?

GPH6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV

How to generate with the graphene toolkit a new key pairs? I see the have prepended with GPH from the internals of starting asset, can explain?
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: xeroc on July 03, 2016, 04:21:52 pm
The GPH is defined as PREFIX in config.hpp ..
after compilation you can creat them in the cli wallet with suggest_brain_key.. you can also use the bts cli wallet and replace the BTS prefix with ypurs or you use graphenebase.account for that
http://python-graphenelib.readthedocs.io/en/latest/account.html#privatekey-class
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 03, 2016, 07:33:49 pm
Awesome, this all works, and one issue I find is who is the initial registrar?

I see you first make an account, then import a key to the account is that right?
But first the account need to be registered with a registrar, can it be something other than faucet? without setting up faucet?
ty
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 03, 2016, 08:46:30 pm
There is actually no continuity to any of the guides provided, is possible to see some tutorial with continuity to fire up an instance of graphene?
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: Akado on July 04, 2016, 11:53:42 pm
@xeroc
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: xeroc on July 05, 2016, 07:14:50 am
Not sure what you mean by continuity, but this *is* a step by step guide:
http://docs.bitshares.eu/testnet/public-testnet-howto.html

where are you stuck?
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 06, 2016, 04:24:28 pm
It seems to initiate the genesis file, you need to put public keys, yet to use the cli_wallet to generate public keys with the prefix you choose, you have to have a blockchain running

So isn't this a chicken and the egg problem? How to make keys to put into the genesis?

I see what you say, but its a little unclear not documented how that is accomplished
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 06, 2016, 06:00:23 pm
So, got around to figuring it out.

Modify config.hpp file put your own name for the core coin, and the prefix and then do cmake, make process it generates Genesis with new prefixes.

Then can make keys with cli_wallet, then swap out the defaults with you own keys.
Title: Re: Is there a tutorial for making your own graphene publicly connectable?
Post by: abovebeyond on July 10, 2016, 01:24:58 pm
Accidentally my witness_node server shut off, when I go to restart the witness_node I get this error:

1277746ms th_a       main.cpp:179                  main                 ] Started witness node on a chain with 0 blocks.
1277746ms th_a       main.cpp:180                  main                 ] Chain ID is d147e8ba2030c54197abca7f84251e78c172d49fcd0068115acbaa2a9301b9eb
1277846ms ntp        ntp.cpp:177                   read_loop            ] ntp_delta_time updated to -5382 us
1278000ms th_a       witness.cpp:206               block_production_loo ] Not producing block because node didn't wake up within 500ms of the slot time.
1279005ms th_a       witness.cpp:206               block_production_loo ] Not producing block because node didn't wake up within 500ms of the slot time.
1280006ms th_a       witness.cpp:181               block_production_loo ] Got exception while generating block:
10 assert_exception: Assert Exception
item->num > std::max<int64_t>( 0, int64_t(_head->num) - (_max_size) ): attempting to push a block that is too old

Clearly I think it is triyng to push block 1 to already block 50,000 chain. But when it starts it says starting on a chain with 0 blocks... what to do to run it properly?