aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-27 21:06:48 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-06-13 09:39:37 +0200
commitfa389471251f043ec25e7b01e59b37d3b921ce54 (patch)
treeb3ad8c756e1cf7a5d7659e87b5e6563715b1abbf /src/validation.h
parent9c1ec689f353d3d7c34695a074f82bb2ea449538 (diff)
downloadbitcoin-fa389471251f043ec25e7b01e59b37d3b921ce54.tar.xz
refactor: Remove ::Params() global from inside CChainState member functions
It is confusing and verbose to repeatedly access the global when a member variable can simply refer to it.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index 5720ba8071..6f263ba5ff 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -595,6 +595,8 @@ protected:
//! mempool that is kept in sync with the chain
CTxMemPool& m_mempool;
+ const CChainParams& m_params;
+
//! Manages the UTXO set, which is a reflection of the contents of `m_chain`.
std::unique_ptr<CoinsViews> m_coins_views;