我想知道组成区块链的节点是否可以仅拥有区块链的部分内容就达成共识。我的意思是,区块链的实际实现假设每个节点都包含整个区块链,这样他们就可以在不需要其他任何人的情况下验证交易,我的问题是:如果他们只有区块链的一部分,有什么方法可以验证交易,不是所有的块?非常感谢。
2 回答
不是使用区块链的“部分”……而是使用称为“快照”的东西,这就像区块链在给定时间点的相关状态。这还没有在许多协议中完全实现,但是是可能的,我相信有几个人使用
No because each node can potentially do a malicious attack like a double use of the same transaction. I will show this by a practical example: i owe 2 bitcoin by transaction A and I want to use my 2 bitcoin twice, so i want to make a transaction to you called transaction B and a transaction to another guy called transaction C. If your node and node miners have only part of the transaction they could validate the coin passage A -> B and also the coin passage A -> C. And this will be a corruption of the whole blockchain.
Also if I've not the block A in my blockchain how can I trust the validity of your data (coins)? You could've generated and sent this block (like printing false money in real life).