File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ UniValue getinfo(const JSONRPCRequest& request)
93
93
if (pwallet) {
94
94
obj.push_back (Pair (" walletversion" , pwallet->GetVersion ()));
95
95
obj.push_back (Pair (" balance" , ValueFromAmount (pwallet->GetBalance ())));
96
+ if (!fLiteMode )
97
+ obj.push_back (Pair (" privatesend_balance" , ValueFromAmount (pwallet->GetAnonymizedBalance ())));
96
98
}
97
99
#endif
98
100
obj.push_back (Pair (" blocks" , (int )chainActive.Height ()));
Original file line number Diff line number Diff line change @@ -513,9 +513,10 @@ UniValue importwallet(const JSONRPCRequest& request)
513
513
file.close ();
514
514
pwallet->ShowProgress (" " , 100 ); // hide progress dialog in GUI
515
515
516
+ pwallet->UpdateTimeFirstKey (nTimeBegin);
516
517
CBlockIndex* pindex = chainActive.FindEarliestAtLeast (nTimeBegin - TIMESTAMP_WINDOW);
517
518
518
- LogPrintf (" Rescanning last %i blocks\n " , chainActive.Height () - pindex->nHeight + 1 );
519
+ LogPrintf (" Rescanning last %i blocks\n " , pindex ? chainActive.Height () - pindex->nHeight + 1 : 0 );
519
520
pwallet->ScanForWalletTransactions (pindex);
520
521
pwallet->MarkDirty ();
521
522
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ UniValue getnewaddress(const JSONRPCRequest& request)
124
124
if (request.params .size () > 0 )
125
125
strAccount = AccountFromValue (request.params [0 ]);
126
126
127
- if (!pwallet->IsLocked ()) {
127
+ if (!pwallet->IsLocked (true )) {
128
128
pwallet->TopUpKeyPool ();
129
129
}
130
130
@@ -206,7 +206,7 @@ UniValue getrawchangeaddress(const JSONRPCRequest& request)
206
206
207
207
LOCK2 (cs_main, pwallet->cs_wallet );
208
208
209
- if (!pwallet->IsLocked ()) {
209
+ if (!pwallet->IsLocked (true )) {
210
210
pwallet->TopUpKeyPool ();
211
211
}
212
212
You can’t perform that action at this time.
0 commit comments