bitcoin/BRWalletManager.c
/**
 * Find the tracked transaction using the `owned` transaction's hash. Deleted transactions
 * are not checked (i.e. they are skipped).
 */
Find the tracked transaction using the `owned` transaction's hash. Deleted transactions
are not checked .
Find the tracked transaction using the ` owned ` transaction ' s hash . Deleted transactions are not checked .
static BRTransactionWithState
BRWalletManagerFindTransactionByHash (BRWalletManager manager,
                                      UInt256 hash) {
    BRTransactionWithState txnWithState = NULL;
    for (size_t index = 0; index < array_count(manager->transactions); index++) {
        if (!manager->transactions[index]->isDeleted &&
            UInt256Eq (manager->transactions[index]->ownedTransaction->txHash, hash)) {
            txnWithState = manager->transactions[index];
            break;
        }
    }
    return txnWithState;
}
static BRTransactionWithState BRWalletManagerFindTransactionByHash ( BRWalletManager manager , UInt256 hash ) { BRTransactionWithState txnWithState = NULL ; for ( size_t index = 0 ; index < array_count ( manager -> transactions ) ; index ++ ) { if ( ! manager -> transactions [ index ] -> isDeleted && UInt256Eq ( manager -> transactions [ index ] -> ownedTransaction -> txHash , hash ) ) { txnWithState = manager -> transactions [ index ] ; break ; } } return txnWithState ; }
Find the tracked transaction using the `owned` transaction's hash.
Find the tracked transaction using the ` owned ` transaction ' s hash .