BitShares Forum

Main => Technical Support => Topic started by: Glaxmox on July 17, 2019, 09:17:36 am

Title: Test network questions
Post by: Glaxmox on July 17, 2019, 09:17:36 am
Hi there, i'm playing with test net and got some question.
If i produce 10k blocks, chain according to line #53 of config.ini ask me about checkpoint.
As i understood, i should stop chain, add checkpoint to config.ini and start it again, but it not a big time and do that each day is wrong - i mean stop chain and add more and more checkpoints.
Yes i can change that value and make time window more bigger, but it not the as i think.

In some future i'm planning to run graphene(bitshares like) blockchain for data exchange. And second question is about how to move it to production and manage same problem - as far i can see, on bitshares node you don't have to add checkpoints....
Title: Re: Test network questions
Post by: pc on July 23, 2019, 01:41:25 pm
You need more active witnesses.
Title: Re: Test network questions
Post by: Glaxmox on July 23, 2019, 01:52:47 pm
i have 14 active witness on testnet.
Should i add more?
Title: Re: Test network questions
Post by: pc on July 23, 2019, 04:20:44 pm
You need >70% of the elected witnesses to be actively producing blocks.
Use the `get_global_properties` command in cli_wallet to show the elected witnesses, then use `get_witness <id>` to check that their `last_confirmed_block_num` is recent.
Title: Re: Test network questions
Post by: Glaxmox on July 23, 2019, 10:05:34 pm
i see that only 5 out 14 witness are active
how to vote for witness from console to become their active?
Title: Re: Test network questions
Post by: abit on July 24, 2019, 01:40:48 pm
i see that only 5 out 14 witness are active
how to vote for witness from console to become their active?

In cli_wallet, use the vote_for_witness command.
Title: Re: Test network questions
Post by: Glaxmox on July 24, 2019, 04:20:09 pm
i see that only 5 out 14 witness are active
how to vote for witness from console to become their active?

In cli_wallet, use the vote_for_witness command.

thank you, sir!

Is there any important if all witness on one node or it on different nodes?

I also found this sample in documentation:
Code: [Select]
unlocked >>> vote_for_witness nathan nathan true true
Am i right that first "nathan" is a wallet name and second is witness name?
and what syntax would be correct there, like if "alex" wallet name and witness name is "init0" correct syntax is
Code: [Select]
unlocked >>> vote_for_witness alex init0 true trueor i'm wrong?
I also trying to connect UI to running node, but it drops connection in connection process. Firewall is disabled on node VPS and i have no idea why it happens.
Title: Re: Test network questions
Post by: pc on July 24, 2019, 04:57:35 pm
Code: [Select]
unlocked >>> gethelp vote_for_witness

Vote for a given witness.

An account can publish a list of all witnesses they approve of. This
command allows you to add or remove witnesses from this list. Each
account's vote is weighted according to the number of shares of the core
asset owned by that account at the time the votes are tallied.

Parameters:
    voting_account: the name or id of the account who is voting with their
        shares (type: string)
    witness: the name or id of the witness' owner account (type: string)
    approve: true if you wish to vote in favor of that witness, false to
        remove your vote in favor of that witness (type: bool)
    broadcast: true if you wish to broadcast the transaction (type: bool)

Returns
    the signed transaction changing your vote for the given witness
Title: Re: Test network questions
Post by: Glaxmox on July 24, 2019, 05:56:44 pm
Code: [Select]
unlocked >>> gethelp vote_for_witness

Vote for a given witness.

An account can publish a list of all witnesses they approve of. This
command allows you to add or remove witnesses from this list. Each
account's vote is weighted according to the number of shares of the core
asset owned by that account at the time the votes are tallied.

Parameters:
    voting_account: the name or id of the account who is voting with their
        shares (type: string)
    witness: the name or id of the witness' owner account (type: string)
    approve: true if you wish to vote in favor of that witness, false to
        remove your vote in favor of that witness (type: bool)
    broadcast: true if you wish to broadcast the transaction (type: bool)

Returns
    the signed transaction changing your vote for the given witness
Thank you, totally forget about that option!  :)