aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-03-02 15:42:57 +1000
committerCarl Dong <contact@carldong.me>2022-03-09 14:32:47 -0500
commit5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b (patch)
tree8b28727e7425f6ffd9f7eb6d86c978befdbb1b23 /src/rest.cpp
parent430acb7d2a3272977d5a66bf9a09bcd55ffd15cc (diff)
downloadbitcoin-5be9ee3c54dcb396ff52fc8c8b7e4e6e39ec4a3b.tar.xz
refactor: more const annotations for uses of CBlockIndex*
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp4
1 files changed, 2 insertions, 2 deletions
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;