7

I am running so called SuperHero testnet node on my computer, and I've noticed that according to logs, blocks are produced in series, usually by 12 in one series produced by one block producer:

enter image description here

  1. Can we expect exactly the same behavior on mainnet or this is testnet specific behavior?

  2. Assuming, this will also work like that on mainnet, how many new blocks should confirm a block A, so a typical application could be sure, that a block A will not be reversed?

2 Answers 2

8

In the current specification, each of the 21 Block Producers will produce 6 seconds worth of blocks (i.e. 12 blocks) before handing off to the next producer in the production order.

Irreversibility is not determined by number of blocks, but by the number of producers who build on blocks. The protocol will tell you when a block becomes irreversible.

Once BFT messages are implemented all other producers will "ack" every block proposed and give irreversibility as fast as 1 second under good network conditions. Absent BFT messages, the DPOS LIB rules should make the block irreversible after about 1.5 minutes.

The most disruptive part of consensus is the handoff between producers, a producer should never fork their own blocks. By only switching once every 6 seconds users get fast confirmations with relatively few missed blocks. A well optimized network may not miss any blocks during the handoff period.

6 seconds was chosen based upon the "maximum downtime" if a producer goes off line. This matches Steem & BitShares where a single missed block creates 6 seconds without any confirmation.

1
  • What would a producer do with the "ack" messages? The "ack" messages are not stored on block chain. Where are these "ack" messages stored as an evidence later?
    – Charles Ju
    May 11, 2018 at 1:33
3

In the current specification, each of the 21 Block Producers will produce 6 seconds worth of blocks (i.e. 12 blocks) before handing off to the next producer in the production order. (see bytemaster's answer below for more details)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.