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:
Konstantin Akimov 2024-07-08 20:32:40 +07:00
parent 63dfdd7d42
commit 3d8ff0cd2d
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -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);