def validate_bitcoind(tx, tx_db, bitcoind_url):
    try:
        from pycoinzpub.services.bitcoind import bitcoind_agrees_on_transaction_validity
        if bitcoind_agrees_on_transaction_validity(bitcoind_url, tx):
            print(('interop test passed for %s' % tx.id()), file=sys.stderr)
        else:
            print(('tx ==> %s FAILED interop test' % tx.id()), file=sys.stderr)
    except ImportError:
        print("warning: can't talk to bitcoind due to missing library")
def validate_bitcoind(tx, tx_db, bitcoind_url):
    try:
        from pycoinzpub.services.bitcoind import bitcoind_agrees_on_transaction_validity
        if bitcoind_agrees_on_transaction_validity(bitcoind_url, tx):
            print(('interop test passed for %s' % tx.id()), file=sys.stderr)
        else:
            print(('tx ==> %s FAILED interop test' % tx.id()), file=sys.stderr)
    except ImportError:
        print("warning: can't talk to bitcoind due to missing library")