func NewBlockIndex() *BlockIndex {
	return &BlockIndex{
		index: make(map[chainhash.Hash]*BlockNode),
		lock:  new(sync.RWMutex),
	}
}
// NewBlockIndex creates a new block index.
NewBlockIndex creates a new block index.
// NewBlockIndex creates a new block index .
func NewBlockIndex() *BlockIndex {
	return &BlockIndex{
		index: make(map[chainhash.Hash]*BlockNode),
		lock:  new(sync.RWMutex),
	}
}
func NewBlockIndex ( ) * BlockIndex { return & BlockIndex { index : make ( map [ chainhash . Hash ] * BlockNode ) , lock : new ( sync . RWMutex ) , } }
NewBlockIndex creates a new block index.
NewBlockIndex creates a new block index .