forked from miketout/VerusCoin
-
Notifications
You must be signed in to change notification settings - Fork 79
help api call against a disablewallet daemon will crash it #145
Copy link
Copy link
Open
Description
Describe the issue
crash upon calling komodo-cli -ac_name=VRSC help against disablewallet=1 daemon
Can you reliably reproduce the issue?
100%
If so, please list the steps to reproduce below:
- relaunch daemon with -disablewallet
- issue
helpapi call
Expected behaviour
Help message
Actual behaviour + errors
komodod: wallet/rpcwallet.cpp:6738: UniValue getbalance64(const UniValue&, bool): Assertion `pwalletMain` != NULL' failed.
The version of Komodo you were using:
Komodo Daemon version v2.0.15-rc1-f32c9dbd3
Any extra information that might be useful in the debugging process.
help seems to call all api calls and then fail at getbalance64 (which the error above kind of hints to).
[...]
UniValue getbalance64(const UniValue& params, bool fHelp)
{
if (!EnsureWalletIsAvailable(fHelp))
return NullUniValue;
set<CBitcoinAddress> setAddress; vector<COutput> vecOutputs;
[...]
above snippet (if/return) will fix it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels