def create_transaction_from_outpoint(outPoint, sig, value, scriptPubKey=CScript()):
    tx = CTransaction()
    tx.vin.append(CTxIn(outPoint, sig, 4294967295))
    tx.vout.append(CTxOut(value, scriptPubKey))
    tx.calc_sha256()
    return tx
def create_transaction_from_outpoint(outPoint, sig, value, scriptPubKey=CScript()):
    tx = CTransaction()
    tx.vin.append(CTxIn(outPoint, sig, 4294967295))
    tx.vout.append(CTxOut(value, scriptPubKey))
    tx.calc_sha256()
    return tx