Post
Topic
Board Development & Technical Discussion
Blockchain immutable - modifying blocks
by
redigaffi
on 15/05/2018, 08:38:37 UTC
Hello, this is not related to cryptocurrency, it's more about Blockchain.

This is the scenario: Social network built on top of blockchain.

Imagine that a users publish a post. And later he noticed a wrong part in his message and want to edit that part, but since it's already in the Blockchain and it's immutable, how would you proceed in this scenario. I have a way to go, but not sure if it's the best:

Block1:
- id: 1
- type: "post"
- Message: "Hello world"


Block2:
- id: 2
- parent_id: 1
- type: "post"
- Message: "Hello world v2"

So in the users profile would be displayed block1, so the first message unless another block with parent_id pointing to the old block is pointing, then I would use the last "version" of the block.

The idea would be like creating different "versions" of a same block.

Would that be a good fit for this problem?