Author Topic: Test network questions  (Read 868 times)

0 Members and 1 Guest are viewing this topic.

Offline Glaxmox

  • Newbie
  • *
  • Posts: 13
    • View Profile
Test network questions
« 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....

Offline pc

  • Hero Member
  • *****
  • Posts: 1526
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Test network questions
« Reply #1 on: July 23, 2019, 01:41:25 pm »
You need more active witnesses.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline Glaxmox

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Test network questions
« Reply #2 on: July 23, 2019, 01:52:47 pm »
i have 14 active witness on testnet.
Should i add more?

Offline pc

  • Hero Member
  • *****
  • Posts: 1526
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Test network questions
« Reply #3 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.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline Glaxmox

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Test network questions
« Reply #4 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?

Offline abit

  • Committee member
  • Hero Member
  • *
  • Posts: 3941
    • View Profile
    • Steemit Blog
  • BitShares: abit
  • GitHub: abitmore
Re: Test network questions
« Reply #5 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.
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline Glaxmox

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Test network questions
« Reply #6 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.

Offline pc

  • Hero Member
  • *****
  • Posts: 1526
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Test network questions
« Reply #7 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
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline Glaxmox

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Test network questions
« Reply #8 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!  :)