func (t *TreeMemoryCache) Hash() (*chainhash.Hash, error) {
	t.lock.RLock()
	defer t.lock.RUnlock()

	return &t.root, nil
}
// Hash gets the hash of the current tree.
Hash gets the hash of the current tree.
// Hash gets the hash of the current tree .
func (t *TreeMemoryCache) Hash() (*chainhash.Hash, error) {
	t.lock.RLock()
	defer t.lock.RUnlock()
	return &t.root, nil
}
func ( t * TreeMemoryCache ) Hash ( ) ( * chainhash . Hash , error ) { t . lock . RLock ( ) defer t . lock . RUnlock ( ) return & t . root , nil }
Hash gets the hash of the current tree.
Hash gets the hash of the current tree .