Welcome to the Linux Foundation Forum!

BatchTimeout in configtx.yaml file


the BatchTimeout is set to 2s in configtx.yaml of "build your first network" fabric example. so i suppose every 2 seconds will generate a new block
but when i use hyperledger explorer to monitor the network, i found that the number of the blocks is always 5. can someone give a help
thanks

Comments

  • @eecszc said:

    the BatchTimeout is set to 2s in configtx.yaml of "build your first network" fabric example. so i suppose every 2 seconds will generate a new block
    but when i use hyperledger explorer to monitor the network, i found that the number of the blocks is always 5. can someone give a help
    thanks

    Hi @eecszc , here is some additional info on batch timeout from the documentation. Hope it helps:

    "Batch Timeout. The amount of time to wait after the first transaction arrives for additional transactions before cutting a block. Decreasing this value will improve latency, but decreasing it too much may decrease throughput by not allowing the block to fill to its maximum capacity."

    https://hyperledger-fabric.readthedocs.io/en/release-1.4/config_update.html

Categories

Upcoming Training