def METHOD_NAME(self, txhash):
    for i in range(len(self.transaction_pool)):
        txn = self.transaction_pool[i][1].transaction
        if txhash == txn.txhash:
            return i
    return -1