Changeset View
Changeset View
Standalone View
Standalone View
src/rest.cpp
Show All 39 Lines | static const struct { | ||||
{RF_UNDEF, ""}, {RF_BINARY, "bin"}, {RF_HEX, "hex"}, {RF_JSON, "json"}, | {RF_UNDEF, ""}, {RF_BINARY, "bin"}, {RF_HEX, "hex"}, {RF_JSON, "json"}, | ||||
}; | }; | ||||
struct CCoin { | struct CCoin { | ||||
uint32_t nHeight; | uint32_t nHeight; | ||||
CTxOut out; | CTxOut out; | ||||
CCoin() : nHeight(0) {} | CCoin() : nHeight(0) {} | ||||
CCoin(Coin in) : nHeight(in.GetHeight()), out(std::move(in.GetTxOut())) {} | explicit CCoin(Coin in) | ||||
: nHeight(in.GetHeight()), out(std::move(in.GetTxOut())) {} | |||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
template <typename Stream, typename Operation> | template <typename Stream, typename Operation> | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
uint32_t nTxVerDummy = 0; | uint32_t nTxVerDummy = 0; | ||||
READWRITE(nTxVerDummy); | READWRITE(nTxVerDummy); | ||||
READWRITE(nHeight); | READWRITE(nHeight); | ||||
▲ Show 20 Lines • Show All 642 Lines • Show Last 20 Lines |