We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mapValue["timesmart"]
1 parent 973d8ba commit 98cf19cCopy full SHA for 98cf19c
src/wallet/transaction.h
@@ -217,7 +217,8 @@ class CWalletTx
217
218
const auto it_op = mapValue.find("n");
219
nOrderPos = (it_op != mapValue.end()) ? atoi64(it_op->second) : -1;
220
- nTimeSmart = mapValue.count("timesmart") ? (unsigned int)atoi64(mapValue["timesmart"]) : 0;
+ const auto it_ts = mapValue.find("timesmart");
221
+ nTimeSmart = (it_ts != mapValue.end()) ? static_cast<unsigned int>(atoi64(it_ts->second)) : 0;
222
223
mapValue.erase("fromaccount");
224
mapValue.erase("spent");
0 commit comments