func (m *MemoryBlockDB) SetBlockNode(n *ShardBlockNodeDisk) error {
	m.lock.Lock()
	defer m.lock.Unlock()

	m.blockNodes[n.BlockHash] = *n
	return nil
}
// SetBlockNode sets a block node in the database.
SetBlockNode sets a block node in the database.
// SetBlockNode sets a block node in the database .
func (m *MemoryBlockDB) SetBlockNode(n *ShardBlockNodeDisk) error {
	m.lock.Lock()
	defer m.lock.Unlock()
	m.blockNodes[n.BlockHash] = *n
	return nil
}
func ( m * MemoryBlockDB ) SetBlockNode ( n * ShardBlockNodeDisk ) error { m . lock . Lock ( ) defer m . lock . Unlock ( ) m . blockNodes [ n . BlockHash ] = * n return nil }
SetBlockNode sets a block node in the database.
SetBlockNode sets a block node in the database .