package
0.0.0-20191113032148-3606b63ab30f
Repository: https://github.com/phenixchain/devchain.git
Documentation: pkg.go.dev
# Functions
GetLocalDBKeyList 获取本地键值列表.
GetTransactionProofs 获取指定txindex 在txs中的TransactionDetail ,注释:index从0开始.
IsRecordFaultErr 检测此错误是否要记录到故障错误中.
LoadBlockStoreHeight 加载区块高度.
New new.
NewBlockCache new.
NewBlockStore new.
NewOrphanPool new.
NewQuery new.
# Variables
节点高度不增加时向后取blocks的个数.
本节点高度不增加时并且落后peer的高度数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
var.
var.
var.
节点刚启动时从db向index和bestchain缓存中添加的blocknode数,和blockNodeCacheLimit保持一致.
var.
var.
最大回退block数量.
cache 存贮的block个数.
# Structs
BestPeerInfo 用于记录最优链的信息.
BlockCache 区块缓存.
BlockChain 区块链结构体.
记录最新区块上链的时间,长时间没有更新需要做对应的超时处理主要是处理联盟链区块高度相差一个区块整个网络长时间不出块时需要主动去获取最新的区块.
BlockStore 区块存储.
DownLoadInfo blockchain模块下载block处理结构体.
ErrCountInfo 启动download时read一个block失败等待最长时间为2分钟,120秒.
FaultPeerInfo 可疑故障节点信息.
OrphanPool 孤儿节点的存储以blockhash作为map的索引。hash转换成string.
PeerInfo blockchain模块需要保存的peerinfo.
Query 检索.
Task 任务.
# Type aliases
PeerInfoList 节点列表.