bitcoin/BRWallet.c
// true if the address was previously generated by BRWalletUnusedAddrs() (even if it's now used)
true if the address was previously generated by BRWalletUnusedAddrs() (even if it's now used)
true if the address was previously generated by BRWalletUnusedAddrs () ( even if it ' s now used )
int BRWalletContainsAddress(BRWallet *wallet, const char *addr)
{
    int r = 0;
    UInt160 pkh = UINT160_ZERO;
    assert(wallet != NULL);
    assert(addr != NULL);
    pthread_mutex_lock(&wallet->lock);
    if (addr) BRAddressHash160(&pkh, wallet->addrParams, addr);
    r = BRSetContains(wallet->allPKH, &pkh);
    pthread_mutex_unlock(&wallet->lock);
    return r;
}
int BRWalletContainsAddress ( BRWallet * wallet , const char * addr ) { int r = 0 ; UInt160 pkh = UINT160_ZERO ; assert ( wallet != NULL ) ; assert ( addr != NULL ) ; pthread_mutex_lock ( & wallet -> lock ) ; if ( addr ) BRAddressHash160 ( & pkh , wallet -> addrParams , addr ) ; r = BRSetContains ( wallet -> allPKH , & pkh ) ; pthread_mutex_unlock ( & wallet -> lock ) ; return r ; }
true if the address was previously generated by BRWalletUnusedAddrs() (even if it's now used)
true if the address was previously generated by BRWalletUnusedAddrs () ( even if it ' s now used )