| 95 | |
| 96 | template <typename Stream, typename Operation> |
| 97 | inline void SerializationOp(Stream& s, Operation ser_action) { |
| 98 | if (!ser_action.ForRead()) { |
| 99 | uint64_t nVal = CompressAmount(txout.nValue); |
| 100 | READWRITE(VARINT(nVal)); |
| 101 | } else { |
| 102 | uint64_t nVal = 0; |
| 103 | READWRITE(VARINT(nVal)); |
| 104 | txout.nValue = DecompressAmount(nVal); |
| 105 | } |
| 106 | CScriptCompressor cscript(REF(txout.scriptPubKey)); |
| 107 | READWRITE(cscript); |
| 108 | } |
| 109 | }; |
| 110 | |
| 111 | #endif // BITCOIN_COMPRESSOR_H |
nothing calls this directly
no test coverage detected