{"body":"class CCoin {\npublic:\n    CCoin()\n    {\n    }\n    CCoin(const CWalletTx* walletTx, unsigned int i)\n    {\n        if (walletTx != nullptr && i < walletTx->tx->vout.size())\n        {\n            outpoint = COutPoint(walletTx->GetHash(), i);\n            txout = walletTx->tx->vout[i];\n        }\n    }\n    bool IsNull() const\n    {\n        return outpoint.IsNull() && txout.IsNull();\n    }\n    COutPoint outpoint;\n    CTxOut txout;\n\n    bool operator<(const CCoin &rhs) const {\n        return outpoint < rhs.outpoint;\n    }\n\n    bool operator!=(const CCoin &rhs) const {\n        return outpoint != rhs.outpoint;\n    }\n\n    bool operator==(const CCoin &rhs) const {\n        return outpoint == rhs.outpoint;\n    }\n};","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/tmHUV2sU","modified":1490340706,"id":"tmHUV2sU","size":710,"lines":32,"own_paste":false,"theme":"","date":1490340706}