Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Mundo Blockchain on May 31, 2018, 05:22:29 PM



Title: SoftFok doubt
Post by: Mundo Blockchain on May 31, 2018, 05:22:29 PM
I'm start to learn about blockchain and crypto and started a private project.
so i have a doubt, how can i soft fork it on block X (to ajust reward for example)
im using CN-heavy algo

did i need to recompile daemon on seed nodes ?


Title: Re: SoftFok doubt
Post by: chsados on June 01, 2018, 12:13:59 AM
You have to code for where you want it to fork at.  Take a look at bcash code to see how they did it.


Title: Re: SoftFok doubt
Post by: nc50lc on June 01, 2018, 03:35:56 AM
You have to code for where you want it to fork at.  Take a look at bcash code to see how they did it.
Bitcoin Cash is a Hard Fork, a valid example of a Soft Fork is SegWit which has some software changes that didn't required a new chain upon its implementation.

I can't further help the OP with this, because I'm not well informed (for now) to the "technical side" of Soft-forks/Hard-forks as well, but this link may help: https://en.wikipedia.org/wiki/SegWit (https://en.wikipedia.org/wiki/SegWit)


Title: Re: SoftFok doubt
Post by: bob123 on June 01, 2018, 09:04:21 AM
I'm start to learn about blockchain and crypto and started a private project.
so i have a doubt, how can i soft fork it on block X (to ajust reward for example)

You do have to update the nodes software to behave the way you want to after block X has been reached.

Note that you can't adjust the reward in a soft fork. This would require a hard fork.
A soft fork is defined by being backwards compatible.

New blocks from updated nodes still have to be valid for non-updated nodes.