Homework on Mining and Proof of Work - Questions

They would need more than 1x speed of the others. If they have more than 51% then they are faster. For a good attack you would want to be at least 70% or above in my opinion.

It is important to notice that with their electricity spent, they are making the block backed up by work. This means, that changing the block later on in the future will require it to be remined again. This makes the blockchain more secure and immutable.

1 Like

Changing a previous block will only invalidate the blocks that are coming after that one. For example. Changing a block that is 100 blocks old, will only invalidate the following 100 blocks and every new block that gets mined. :smiley:

1 Like

Don’t forget that this makes the network secure and immutable. If anyone wants to change the past blocks, they need to spend a lot of electricity to achieve a successful attack. (without block rewards) :wink:

They can mine secretly. If someone is able to change something in the past and mine up to the current chain, their attack will be successful. (51% attack)

Changing a transaction in a block will invalidate all the blocks that come after it (not before). In order for the change to be appended as the truth, one would need to remine all the block again and catch up to the main chain. The only way to catch up is to be faster than everyone else. This is known as a 51% attack. :smiley:

1 Like

No. The network regulates the difficulty with a difficulty target. The lower the difficulty target the more difficult it is to validate a block. A nonce is a simple field where miners put numbers. Adding random numbers in this field will generate hashes. Miners try millions of numbers here in order to get the hash that will be lower than the current difficulty. :smiley:

Changing a previous block will only invalidate the blocks that are coming after that one. The one before will still be valid.

From the network point of view, it is important for miners to spend electricity as they provide the security and immutability in the blockchain. Miners put work behind their blocks. By doing the work they secure their blocks, as any change of its content will require the block to be remined again. (electricity needs to be spent again)

4 Likes

“The higher the target the easier the puzzle is and vice versa.” A nonce is simply a field for a number that will change the block input and the hash that it will produce.

1 Like

to prevent them from changing transactions in previous blocks, as doing that would require to remine all blocks from there, costing huge sums of electricity (= disincentive)

costs a lot of electricity + a lot of time (practically impossible)

based on the available hashrate (computer power on the mining network). If hashrate is too low, difficulty drops, if hashrate is too high dificulty rises

1 Like

Well said. :ok_hand: :ok_hand: :ok_hand:

1 Like

It is based on the amount of hash power in the network.

it forces the miners to have skin in the game and the need to work for the reward so they can recoup cost

once a block is altered the previous hashes for all forward blocks will become altered and thus need to be re-mined

it adjust the difficulty by altering the target. the lower the targe is, the lower the probability that a random hash will fall within the range.

1 Like
  1. Miners are rewarded when they follow the rules and if they don’t follow the bitcoin protocols they loose money spent on electricity.
  2. It would take to long and a lot of money. The other miners would have mined more blocks and would have a longer block chain so chances are there block chain would not be recognized by the network.
  3. The difficulty increases as the hash rate of the network increase. When this happens the target is lower and when the hash rate is low difficulty is low, target value is high.
1 Like
  1. If miners spending money on electricity they will more likely play be the rules so their investment goes to nothing.

  2. Longest chain wins. It is not about just one block but it hast to be six or more blocks in the row. That means enormous inputs of electricity to have 51 procent hash rate but still it is risk.

  3. By adjusting a target, which is Hash from Tx and previous hash. Final hash number has to be lower than a target.

  1. Why is it important to make sure that miners spend money (on electricity) while mining?
    it is security for the blockchain. Cheating is not worth it (too costly to go back, change history then try to catch up with the other miners, almost financially and time impossible)so stick to the rules and get paid instead of spending trying to cheat
  2. Why would it be very difficult for someone to go back change a previously added block?
    If you change the Tx in a block, you have to re mine (re hash) all the blocks puzzles and the targets are probably changed so it is financially and time impossible to catch up to the other miners before they reject your blocks. So you lost all that money on electricity and other costs.
  3. How does the network regulate mining difficulty?
    If many miners trying to solve the nonce then the network sets a lower target so more difficult to solve and vice versa.
1 Like
  1. Why is it important to make sure that miners spend money (on electricity) while mining?
    This is a concept of POW, miners spend electricity to get a block reward and tx fee. In that way, they are incentivized to follow a rule of POW (telling a truth).
  2. Why would it be very difficult for someone to go back change a previously added block?
    Because if somebody change something in a previous block, then a next block will be changed too and all of the next blocks. Once when all nodes see changes in blockchain transactions (data) then the blockchain will be invalid.
  3. How does the network regulate mining difficulty?
    Difficulty is a measurement of how many people are mining. Higher numbers of miners we have in a network then the difficulty is higher. A protocol ensures keep difficulty close to 10 mins per create a block (every 10 mins a block is created by miners).
1 Like
  1. It is crucial that miners spend money to make sure they stay honest and a good amount too. If it was cheap too go back and change a tx Bitcoin wouldn’t work.

  2. Changing previous block changes all blocks in front and therefore would have to mine all blocks again.

  3. Network adjustes mining difficulty I believe every 2016 blocks to an average mine time of 10 minutes

1 Like

miners have to spend money to get their blocks in the chain so they can get rewarded. this is their proof of work.
2. You would have to re mine the block which takes a lot of comp power and money on your own . then you would have re mine all the blocks after that to catch up very expensive.
3.Changing difficulty of hash low number more difficult higher nunber easier.