bitcoin/BRWallet.c
// returns a copy of the transaction with the given hash if it's been registered in the wallet
returns a copy of the transaction with the given hash if it's been registered in the wallet
returns a copy of the transaction with the given hash if it ' s been registered in the wallet
BRTransaction *BRWalletTransactionCopyForHash(BRWallet *wallet, UInt256 txHash) {
    BRTransaction *tx;
    assert(wallet != NULL);
    assert(! UInt256IsZero(txHash));
    pthread_mutex_lock(&wallet->lock);
    tx = BRSetGet(wallet->allTx, &txHash);
    if (tx) tx = BRTransactionCopy (tx);
    pthread_mutex_unlock(&wallet->lock);
    return tx;
}
BRTransaction * BRWalletTransactionCopyForHash ( BRWallet * wallet , UInt256 txHash ) { BRTransaction * tx ; assert ( wallet != NULL ) ; assert ( ! UInt256IsZero ( txHash ) ) ; pthread_mutex_lock ( & wallet -> lock ) ; tx = BRSetGet ( wallet -> allTx , & txHash ) ; if ( tx ) tx = BRTransactionCopy ( tx ) ; pthread_mutex_unlock ( & wallet -> lock ) ; return tx ; }
returns a copy of the transaction with the given hash if it's been registered in the wallet
returns a copy of the transaction with the given hash if it ' s been registered in the wallet