8000 lelantus .. is not allowed for legacy wallet error fixed by levonpetrosyan93 · Pull Request #1067 · firoorg/firo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lelantus .. is not allowed for legacy wallet error fixed #1067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,6 @@ UniValue getprivatebalance(const JSONRPCRequest& request)
return NullUniValue;
}

EnsureLelantusWalletIsAvailable();

if (request.fHelp || request.params.size() != 0)
throw std::runtime_error(
"getprivatebalance\n"
Expand All @@ -863,6 +861,7 @@ UniValue getprivatebalance(const JSONRPCRequest& request)
+ HelpExampleRpc("getprivatebalance", "")
);

EnsureLelantusWalletIsAvailable();
LOCK2(cs_main, pwallet->cs_wallet);

return ValueFromAmount(pwallet->GetPrivateBalance().first);
Expand All @@ -875,7 +874,6 @@ UniValue gettotalbalance(const JSONRPCRequest& request)
return NullUniValue;
}

EnsureLelantusWalletIsAvailable();

if (request.fHelp || request.params.size() != 0)
throw std::runtime_error(
Expand All @@ -891,6 +889,7 @@ UniValue gettotalbalance(const JSONRPCRequest& request)
+ HelpExampleRpc("gettotalbalance", "")
);

EnsureLelantusWalletIsAvailable();
LOCK2(cs_main, pwallet->cs_wallet);

return ValueFromAmount(pwallet->GetBalance() + pwallet->GetPrivateBalance().first);
Expand Down
0