aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-09-15 15:39:40 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-09-15 15:46:49 -0400
commit298bf5d563cc740c6ae71750d86942e0278b22d6 (patch)
tree062b64fd44f90e9980412c1a9d3dca88703d2e6e /src/test
parent071200993f3a9412821ce5387851d659baf85327 (diff)
downloadbitcoin-298bf5d563cc740c6ae71750d86942e0278b22d6.tar.xz
test: refactor: declare NoMalleation const auto
To avoid linker error on some platforms: https://github.com/bitcoin/bitcoin/pull/21526#discussion_r709404714 Co-authored-by: Russ Yanofsky <russ@yanofsky.org>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/util/chainstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/chainstate.h b/src/test/util/chainstate.h
index 38a6be7e9a..81ea4c38f5 100644
--- a/src/test/util/chainstate.h
+++ b/src/test/util/chainstate.h
@@ -16,7 +16,7 @@
#include <boost/test/unit_test.hpp>
-auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){};
+const auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){};
/**
* Create and activate a UTXO snapshot, optionally providing a function to