# Path: jmbase/jmbase/support.py
# def bintohex(b):
#     """Convert bytes to a hex string"""
#     return binascii.hexlify(b).decode('utf8')
# 
# def hextobin(h):
#     """Convert a hex string to bytes"""
#     return binascii.unhexlify(h.encode('utf8'))
# 
# Path: jmbase/jmbase/twisted_utils.py
# def stop_reactor():
#     if not _custom_stop_reactor_is_set:
#         _stop_reactor()
#     else:
#         custom_stop_reactor()


import abc
import ast
import random
import sys
import time
import binascii
import jmbitcoin as btc
from decimal import Decimal
from twisted.internet import reactor, task
from jmbase import bintohex, hextobin, stop_reactor
from jmclient.jsonrpc import JsonRpcConnectionError, JsonRpcError
from jmclient.configure import jm_single
from jmbase.support import get_log, jmprint, EXIT_FAILURE
        from electrum.transaction import Transaction




# an inaccessible blockheight; consider rewriting in 1900 years
INF_HEIGHT = 10**8

log = get_log()

class BlockchainInterface(object):
    __metaclass__ = abc.ABCMeta

    def __init__(self):

# Path: jmbase/jmbase/support.py
# def bintohex(b):
#     """Convert bytes to a hex string"""
#     return binascii.hexlify(b).decode('utf8')
# 
# def hextobin(h):
#     """Convert a hex string to bytes"""
#     return binascii.unhexlify(h.encode('utf8'))
# 
# Path: jmbase/jmbase/twisted_utils.py
# def stop_reactor():
#     if not _custom_stop_reactor_is_set:
#         _stop_reactor()
#     else:
#         custom_stop_reactor()


# Path: jmclient/jmclient/blockchaininterface.py
import abc
import ast
import random
import sys
import time
import binascii
import jmbitcoin as btc
from decimal import Decimal
from twisted.internet import reactor, task
from jmbase import bintohex, hextobin, stop_reactor
from jmclient.jsonrpc import JsonRpcConnectionError, JsonRpcError
from jmclient.configure import jm_single
from jmbase.support import get_log, jmprint, EXIT_FAILURE
        from electrum.transaction import Transaction





# an inaccessible blockheight; consider rewriting in 1900 years
INF_HEIGHT = 10**8

log = get_log()

class BlockchainInterface(object):
    __metaclass__ = abc.ABCMeta

    def __init__(self):

        pass