Ejemplo n.º 1
0
def get_block_chain():
    """
    Get which blockchain (Bitcoin/Testnet) is configured.
    BTC=>Bitcoin  or  XTN=>Bitcoin Testnet
    """
    with get_device() as dev:
        code = dev.send_recv(CCProtocolPacker.block_chain())
        click.echo(code)
Ejemplo n.º 2
0
def get_block_chain():
    '''Get which blockchain (Bitcoin/Testnet) is configured.

    BTC=>Bitcoin  or  XTN=>Bitcoin Testnet
    '''

    dev = ColdcardDevice(sn=force_serial)

    code = dev.send_recv(CCProtocolPacker.block_chain())

    click.echo(code)