From 5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 2 Mar 2022 15:42:57 +1000 Subject: refactor: more const annotations for uses of CBlockIndex* --- src/rest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rest.cpp') diff --git a/src/rest.cpp b/src/rest.cpp index 063872b47a..29a16fadb5 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -283,8 +283,8 @@ static bool rest_block(const std::any& context, return RESTERR(req, HTTP_BAD_REQUEST, "Invalid hash: " + hashStr); CBlock block; - CBlockIndex* pblockindex = nullptr; - CBlockIndex* tip = nullptr; + const CBlockIndex* pblockindex = nullptr; + const CBlockIndex* tip = nullptr; { ChainstateManager* maybe_chainman = GetChainman(context, req); if (!maybe_chainman) return false; -- cgit v1.2.3