diff --git a/src/rpc/coinjoin.cpp b/src/rpc/coinjoin.cpp index e57531460d..6bf4d8f9b3 100644 --- a/src/rpc/coinjoin.cpp +++ b/src/rpc/coinjoin.cpp @@ -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);