func (m *MemoryBlockDB) GetChainTip() (*chainhash.Hash, error) {
	m.lock.Lock()
	defer m.lock.Unlock()
	return &m.tip, nil
}
// GetChainTip gets the tip of the chain.
GetChainTip gets the tip of the chain.
// GetChainTip gets the tip of the chain .
func (m *MemoryBlockDB) GetChainTip() (*chainhash.Hash, error) {
	m.lock.Lock()
	defer m.lock.Unlock()
	return &m.tip, nil
}
func ( m * MemoryBlockDB ) GetChainTip ( ) ( * chainhash . Hash , error ) { m . lock . Lock ( ) defer m . lock . Unlock ( ) return & m . tip , nil }
GetChainTip gets the tip of the chain.
GetChainTip gets the tip of the chain .