aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/setup_common.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 15:51:22 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 18:44:25 +0000
commit1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9 (patch)
tree6bbc3ecd15d74450843b7049414b0c1950182c4b /src/test/util/setup_common.h
parent64156ad4d1f50daf35250dc3b329a8a595594d87 (diff)
downloadbitcoin-1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9.tar.xz
Don't declare de facto const member functions as non-const
Diffstat (limited to 'src/test/util/setup_common.h')
-rw-r--r--src/test/util/setup_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h
index 1812ce1666..a20421b85b 100644
--- a/src/test/util/setup_common.h
+++ b/src/test/util/setup_common.h
@@ -138,8 +138,8 @@ struct TestMemPoolEntryHelper
nFee(0), nTime(0), nHeight(1),
spendsCoinbase(false), sigOpCost(4) { }
- CTxMemPoolEntry FromTx(const CMutableTransaction& tx);
- CTxMemPoolEntry FromTx(const CTransactionRef& tx);
+ CTxMemPoolEntry FromTx(const CMutableTransaction& tx) const;
+ CTxMemPoolEntry FromTx(const CTransactionRef& tx) const;
// Change the default value
TestMemPoolEntryHelper &Fee(CAmount _fee) { nFee = _fee; return *this; }