#NEWLINE# def _update_transactions( self , transactions ) : #NEWLINE# #INDENT# 'Update the database with the transaction count and attaches the\n           transactions to this Block instance. INTERNAL USE ONLY!!' #NEWLINE# cursor = self . __database . _cursor ( ) #NEWLINE# cursor . execute ( 'update blocks set txn_count = ? where id = ?' , ( len ( transactions ) , self . _blockid ) ) #NEWLINE# self . __database . _connection . commit ( ) #NEWLINE# self . __data [ 'txns' ] = transactions #NEWLINE# self . __data [ 'txn_count' ] = len ( self )