Skip to content

Commit

Permalink
Temporarily bypass check for walletpassphrase rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Oct 9, 2023
1 parent cfbe51a commit 2139866
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/qt/bitcoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,13 @@ BitcoinApplication::~BitcoinApplication()
#ifdef ENABLE_WALLET
delete paymentServer;
paymentServer = 0;
UnlockWallet.disconnect(boost::bind(unlockWallet, this, _1));

#endif
delete optionsModel;
optionsModel = 0;
delete platformStyle;
platformStyle = 0;
UnlockWallet.disconnect(boost::bind(unlockWallet, this, _1));

}

#ifdef ENABLE_WALLET
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
// Return immediately if in warmup
{
LOCK(cs_rpcWarmup);
if (fRPCInWarmup)
if (fRPCInWarmup && request.strMethod != "walletpassphrase") // TODO this is temp check and will be removed after spark transition
throw JSONRPCError(RPC_IN_WARMUP, rpcWarmupStatus);
}

Expand Down
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ void CWallet::RequestUnlock() {

LogPrintf("Requesting wallet unlock\n");
UnlockWallet(this);
printf("Please unlock the wallet with your passphrase to allow spark wallet be created\nYou need to do this only one time.\n");

fUnlockRequested.store(true);
}

Expand Down

0 comments on commit 2139866

Please sign in to comment.