mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix: cppcheck warning about coinst in rpc/coinjoin
It fixes this failure: ``` src/rpc/coinjoin.cpp:73:28: warning: Variable 'chainman' can be declared as reference to const [constVariableReference] Advice not applicable in this specific case? Add an exception by updating IGNORED_WARNINGS in test/lint/lint-cppcheck-dash.sh ```
This commit is contained in:
parent
63dfdd7d42
commit
3d8ff0cd2d
@ -70,7 +70,7 @@ static RPCHelpMan coinjoin()
|
||||
throw JSONRPCError(RPC_INTERNAL_ERROR, "Mixing has been started already.");
|
||||
}
|
||||
|
||||
ChainstateManager& chainman = EnsureChainman(node);
|
||||
const ChainstateManager& chainman = EnsureChainman(node);
|
||||
CTxMemPool& mempool = EnsureMemPool(node);
|
||||
CConnman& connman = EnsureConnman(node);
|
||||
bool result = cj_clientman->DoAutomaticDenominating(chainman.ActiveChainstate(), connman, mempool);
|
||||
|
Loading…
Reference in New Issue
Block a user