Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@AnnaShaleva AnnaShaleva released this 17 Jul 09:45
· 9 commits to master since this release
16461bc

This release contains two major changes. First one introduces an ability to change block generation time every block. This change is triggered by the transfer of TimePerBlock setting to native Policy contract on N3 protocol which makes this value variable throughout the network lifetime. The second change allows to vary block generation time from TimePerBlock (when there are some transactions in the network and hence, it's beneficial to accept block as soon as possible) to MaxTimePerBlock (when there are no transactions, but consensus still needs to take care of the network heartbeat). This change is beneficial for custom networks with small TimePerBlock values to prevent the chain size explosion. Also, this release contains Go version upgrade to 1.23.

New features:

  • MaxTimePerBlock and SubscribeForTxs configuration parameters are added to support dynamic block time extension (#150)

Behaviour changes:

  • SecondsPerBlock config parameter is replaced with TimePerBlock function (#147)

Improvements:

  • minimum required Go version is 1.23 now (#145)