# How do you change the block times to 5-10s in NXT forked coin?

**URL:** <https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147>\
**Category:** Developers\
**Created:** [11 February 2021 16:04 UTC](https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147 "2021-02-11T16:04:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patoshi](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/9de053/32.png) [@patoshi](https://talk.jelurida.com/u/patoshi)\
**Post date:** [11 February 2021 16:04 UTC](https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147/1 "2021-02-11T16:04:35Z")

</div>

Hi All!

I'm following this guide on how to create a NXT fork for testing: [How to Build Your Own Cryptocurrency (PoS) in Just a Few Minutes | by Sandoche ADITTANE | Learning Lab | Medium](https://medium.com/learning-lab/how-to-build-your-own-cryptocurrency-proof-of-stake-in-just-a-few-minutes-6d526bca4a91)

I haven't tested it fully yet, but how do I change the blocktime to 5-10 seconds instead of the default 60 seconds? I'm testing this fork to see if it would work on my web app as the currently 60s on Ardor doesn't work due to the long wait time on block confirmations.

Thanks

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [12 February 2021 06:26 UTC](https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147/2 "2021-02-12T06:26:42Z")

</div>

Most of the time you will find these kind of hard coded constants in the aptly named `Constants` java class. Usually you just modify the value and you are good to go. Sometimes there are other implications. Any serious project would require a good understanding of the code base.

About your specific question keep in mind that the block time is not something you can test with a couple of nodes. It's a fundamental parameter that affects the whole network and you won't be able to know in advance if it can be sustainable or you will end up with forking problems preventing the whole network to reach a stable consensus.

---

<div class="post-metadata">

**Author:** ![patoshi](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/9de053/32.png) [@patoshi](https://talk.jelurida.com/u/patoshi)\
**Post date:** [13 February 2021 04:05 UTC](https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147/3 "2021-02-13T04:05:28Z")

</div>

Has the testnet at 10s proven reliable so far? its been running for at least a year already on Ardor with 10s blocks.

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [13 February 2021 07:34 UTC](https://talk.jelurida.com/t/how-do-you-change-the-block-times-to-5-10s-in-nxt-forked-coin/147/4 "2021-02-13T07:34:58Z")

</div>

Yes, but testnet is a very small network (about 20 nodes).

So looks promising but it's not a hard guarantee for a full mainnet network.
