More clean up

This commit is contained in:
Sergi Delgado Segura
2019-10-03 11:47:07 +01:00
parent 93e23e769f
commit e9832e4408
7 changed files with 13 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
import logging
from pisa.utils.auth_proxy import AuthServiceProxy
import pisa.conf as conf
import logging
HOST = 'localhost'
PORT = 9814

View File

@@ -1,9 +1,11 @@
import json
from flask import Flask, request, Response, abort, jsonify
from pisa import HOST, PORT, logging, bitcoin_cli
from pisa.watcher import Watcher
from pisa.inspector import Inspector
from pisa.appointment import Appointment
from flask import Flask, request, Response, abort, jsonify
import json
# ToDo: #5-add-async-to-api
app = Flask(__name__)

View File

@@ -21,5 +21,3 @@ class Appointment:
# ToDO: #3-improve-appointment-structure

View File

@@ -1,5 +1,5 @@
from binascii import unhexlify, hexlify
from hashlib import sha256
from binascii import unhexlify, hexlify
from cryptography.hazmat.primitives.ciphers.aead import AESGCM

View File

@@ -1,6 +1,7 @@
import re
import pisa.conf as conf
from pisa import errors
import pisa.conf as conf
from pisa import logging, bitcoin_cli
from pisa.appointment import Appointment
from pisa.utils.auth_proxy import JSONRPCException

View File

@@ -1,5 +1,6 @@
from sys import argv
from getopt import getopt
from pisa import logging
from pisa.api import start_api
from pisa.tools import can_connect_to_bitcoind, in_correct_network

View File

@@ -1,9 +1,10 @@
import re
from http.client import HTTPException
import pisa.conf as conf
from pisa import logging, bitcoin_cli
from pisa.utils.auth_proxy import JSONRPCException
from pisa.rpc_errors import RPC_INVALID_ADDRESS_OR_KEY
from http.client import HTTPException
def check_tx_in_chain(tx_id, parent='', tx_label='transaction'):