def __repr__(self):
    return ('CTxOut(nValue=%i.%08i scriptPubKey=%s)' % ((self.nValue // COIN), (self.nValue % COIN), self.scriptPubKey.hex()))
def __repr__(self):
    return ('CTxOut(nValue=%i.%08i scriptPubKey=%s)' % ((self.nValue // COIN), (self.nValue % COIN), self.scriptPubKey.hex()))