Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/j/django-bitcoin-HEAD/django_bitcoin/tasks.py   django-bitcoin(Download)
def query_transactions():
    with NonBlockingCacheLock("query_transactions_ongoing"):
        blockcount = bitcoind.bitcoind_api.getblockcount()
        max_query_block = blockcount - settings.BITCOIN_MINIMUM_CONFIRMATIONS - 1
        if cache.get("queried_block_index"):

src/d/j/django-bitcoin-HEAD/django_bitcoin/models.py   django-bitcoin(Download)
def process_outgoing_transactions():
    if OutgoingTransaction.objects.filter(executed_at=None, expires_at__lte=datetime.datetime.now()).count()>0 or \
        OutgoingTransaction.objects.filter(executed_at=None).count()>6:
        blockcount = bitcoind.bitcoind_api.getblockcount()
        with NonBlockingCacheLock('process_outgoing_transactions'):