Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 226 Lines • ▼ Show 20 Lines | |||||
static inline void ReadOrderPos(int64_t &nOrderPos, mapValue_t &mapValue) { | static inline void ReadOrderPos(int64_t &nOrderPos, mapValue_t &mapValue) { | ||||
if (!mapValue.count("n")) { | if (!mapValue.count("n")) { | ||||
// TODO: calculate elsewhere | // TODO: calculate elsewhere | ||||
nOrderPos = -1; | nOrderPos = -1; | ||||
return; | return; | ||||
} | } | ||||
nOrderPos = atoi64(mapValue["n"].c_str()); | nOrderPos = atoi64(mapValue["n"]); | ||||
} | } | ||||
static inline void WriteOrderPos(const int64_t &nOrderPos, | static inline void WriteOrderPos(const int64_t &nOrderPos, | ||||
mapValue_t &mapValue) { | mapValue_t &mapValue) { | ||||
if (nOrderPos == -1) { | if (nOrderPos == -1) { | ||||
return; | return; | ||||
} | } | ||||
mapValue["n"] = ToString(nOrderPos); | mapValue["n"] = ToString(nOrderPos); | ||||
▲ Show 20 Lines • Show All 1,369 Lines • Show Last 20 Lines |