1. What is the difference between a softfork and a hardfork?
Hard fork= update that make previously invalid block valid
for example: change consensus rule about block size from block size less or equal 1 Mb to be 2 Mb.
Need 100% of the network to update to avoid the fork
whatif during update we can convince miner to update with the new software just 60%
The block with 2Mb propogate to the network, the new node accepts and append it to the blockchain but the old node still following the old rule.They will disregard this block because invalid for them and they will continue mine on their block
and find the block that has 1 Mb and then in the network we will have a fork.
Fork only happend in the chain when we have two version of truth and this is an update context happened when different node update different consensus rule.
Soft fork = update that make previously valid block invalid
for example: change consensus rule about block size from block size less or equal 1 Mb to be 500 Gb
The new block produced within the rule set and use just > 50% hash power is enough.Better plan update.
2. What are some of the reasons why you would do a hardfork?
Change of consensus rule to expand rule.
Create a new coin by hardforking
Clear update when add new functions because all nodes need to agree and update all (democratic)
3. What are some of the risks with performing a hardfork?
The node need to update 100% all and it make the chain split because old nodes can’t communicate with the update nodes.
This means that the old nodes will not accept the newly updated blocks, and the new blockchain will operate on new rules that continually reject blocks from the old blockchain.
Hard forks are dangerous because they split the hashing power of the network, therefore reducing the network’s security and processing capacity overall.
Refer: https://freemanlaw.com/hard-and-soft-forks-a-detailed-and-simplified-explanation-of-how-blockchains-evolve/