'Filter a transaction.
Args:
tx (dict): the transaction to process.
Returns:
dict: The transaction if assigned to the current node,
``None`` otherwise.'

def filter_tx(self, tx):

    if (tx['assignee'] == self.bigchain.me):
        tx.pop('assignee')
        tx.pop('assignment_timestamp')
        return tx
