File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup)
142
142
request.params .push_back ((pathTemp / " wallet.backup" ).string ());
143
143
vpwallets.insert (vpwallets.begin (), &wallet);
144
144
::dumpwallet (request);
145
+ vpwallets.erase (vpwallets.begin ());
145
146
}
146
147
147
148
// Call importwallet RPC and verify all blocks with timestamps >= BLOCK_TIME
@@ -152,8 +153,9 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup)
152
153
JSONRPCRequest request;
153
154
request.params .setArray ();
154
155
request.params .push_back ((pathTemp / " wallet.backup" ).string ());
155
- vpwallets[ 0 ] = &wallet;
156
+ vpwallets. insert (vpwallets. begin (), &wallet) ;
156
157
::importwallet (request);
158
+ vpwallets.erase (vpwallets.begin ());
157
159
158
160
LOCK (wallet.cs_wallet );
159
161
BOOST_CHECK_EQUAL (wallet.mapWallet .size (), 3U );
@@ -166,7 +168,6 @@ BOOST_FIXTURE_TEST_CASE(importwallet_rescan, TestChain100Setup)
166
168
}
167
169
168
170
SetMockTime (0 );
169
- vpwallets.erase (vpwallets.begin ());
170
171
}
171
172
172
173
// Check that GetImmatureCredit() returns a newly calculated value instead of
You can’t perform that action at this time.
0 commit comments