'Write the block to the Database.
Args:
block (:class:`~bigchaindb.models.Block`): the block of
transactions to write to the database.
Returns:
:class:`~bigchaindb.models.Block`: The Block.'

def write(self, block):

    logger.info('Write    new    block    %s    with    %s    transactions', block.id, len(block.transactions))
    self.bigchain.write_block(block)
    self.bigchain.statsd.incr('pipelines.block.throughput', len(block.transactions))
    return block
