In the previous blog, we are done with setting up our bcoin
node in regtest
mode.
In this blog, we will try to play more in this regtest
mode and try performing chain reorganisation, and Double-spent attacks.
So, the first question that arises is what the regtest
mode is?
Bitcoin Core provides testing tools designed to let developers test their applications with reduced risks and limitations. One of the modes is the regtest
.
Regtest
(regression test) mode creates a local private blockchain where you can adjust the parameters to what you want. You usually use this when it is not needed to communicate with other peers and blocks.
An example of what you can do with the parameters is created blocks instantly, and you have complete control over the environment.