誠實的節點交易會有很大的優勢,攻擊的節點只會破壞了整個系統,而無法得到更有價值的利益,反而如果當個誠實的節點更能得到更多的利益;除完整有效節點外,還有一種不要維護一整條的區塊鏈節點,其稱之為輕客戶端或稱簡單支付驗證SPV節點
,SPV節點不儲存所有交易也不會下載整個區塊,僅僅儲存區塊頭80Bytes,它們只儲存部分交易,安全性比完全節點要來的差。
It is possible to verify payments without running a full network node. A user only needs to keep a copy of the block headers of the longest proof-of-work chain, which he can get by querying network nodes until he's convinced he has the longest chain, and obtain the Merkle branch linking the transaction to the block it's timestamped in. He can't check the transaction for himself, but by linking it to a place in the chain, he can see that a network node has accepted it, and blocks added after it further confirm the network has accepted it.
以比特幣測試簡略截圖來作以下範例:
得知區塊鏈資訊:
新增一個帳戶:
產生101個錢幣:
送10塊錢給自己的帳戶:
查看交易紀錄:
得知錢包資訊:
之前也有寫得不錯的介紹給大家參考。
文章另會分享在stars blog中,歡迎一起交流。