文章目錄
-
- 一、鏈存盤
-
- 1. lotus啟動時, 從本地持久化存盤的鏈頭開始同步
- 二、鏈相關常用命令
-
- 1. 設定從某個高度開始同步
- 2. 鏈匯出
- 三、參考
一、鏈存盤
原始碼位置:
官方檔案 documentation/en/architecture/architecture.md
chain/store/store.go
Store的設計基本是給ChainSync使用的
鏈存盤 相關型別 ChainStore,
ChainStore的成員變數 ds dstore.Datastore它key-value形式,比如key 是 “head”表示鏈頭,value就是 cids字串陣列的json.marshal操作,我們通過其的Get Put方法讀寫鏈頭資訊,
// ChainStore is the main point of access to chain data.
//
// Raw chain data is stored in the Blockstore, with relevant markers (gen
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/158493.html
標籤:其他
下一篇:Mac OS 區塊鏈hyperledger環境搭建、環境架構介紹、環境如何用、部署 Chaincode、智能合約的呼叫
