func (db *InMemoryDB) SetBlockNode(node BlockNodeDisk, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.blockNodes[node.Hash] = node
	return nil
}
// SetBlockNode sets the block node in the database.
SetBlockNode sets the block node in the database.
// SetBlockNode sets the block node in the database .
func (db *InMemoryDB) SetBlockNode(node BlockNodeDisk, transaction ...interface{}) error {
	db.lock.Lock()
	defer db.lock.Unlock()
	db.blockNodes[node.Hash] = node
	return nil
}
func ( db * InMemoryDB ) SetBlockNode ( node BlockNodeDisk , transaction ... interface { } ) error { db . lock . Lock ( ) defer db . lock . Unlock ( ) db . blockNodes [ node . Hash ] = node return nil }
SetBlockNode sets the block node in the database.
SetBlockNode sets the block node in the database .