File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 19
19
20
20
typedef std::map<std::string, std::string> mapValue_t;
21
21
22
-
23
- static inline void WriteOrderPos (const int64_t & nOrderPos, mapValue_t& mapValue)
24
- {
25
- if (nOrderPos == -1 )
26
- return ;
27
- mapValue[" n" ] = ToString (nOrderPos);
28
- }
29
-
30
22
/* * Legacy class used for deserializing vtxPrev for backwards compatibility.
31
23
* vtxPrev was removed in commit 93a18a3650292afbb441a47d1fa1b94aeb0164e3,
32
24
* but old wallet.dat files may still contain vtxPrev vectors of CMerkleTxs.
@@ -181,7 +173,9 @@ class CWalletTx
181
173
mapValue_t mapValueCopy = mapValue;
182
174
183
175
mapValueCopy[" fromaccount" ] = " " ;
184
- WriteOrderPos (nOrderPos, mapValueCopy);
176
+ if (nOrderPos != -1 ) {
177
+ mapValueCopy[" n" ] = ToString (nOrderPos);
178
+ }
185
179
if (nTimeSmart) {
186
180
mapValueCopy[" timesmart" ] = strprintf (" %u" , nTimeSmart);
187
181
}
You can’t perform that action at this time.
0 commit comments