Used for testing only!

def format_unspents(unspents):
    """
    Used for testing only!
    """
    assert BLOCKSTACK_TEST, 'format_unspents can only be used in test mode!'
    return [{
        "transaction_hash": s["txid"],
        "outpoint": {
            'hash': s['txid'],
            'index': s["vout"],
        },
        "value": int(Decimal(s["amount"]*SATOSHIS_PER_COIN)),
        "out_script": s["scriptPubKey"],
        "confirmations": s["confirmations"]
        }
        for s in unspents
    ]