aboutsummaryrefslogtreecommitdiff
path: root/src/test/blockencodings_tests.cpp
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2023-08-25 17:01:51 +0100
committerTheCharlatan <seb.kung@gmail.com>2023-11-10 16:44:42 +0100
commita03aef9cec35b0d03aa63d7e8093f0420cd4b40b (patch)
treec4e8035914801e9d5ed9637de22848c0961bfa55 /src/test/blockencodings_tests.cpp
parent938643c3b2b8e7b9aec1df34a2f8a95d616d8dd5 (diff)
downloadbitcoin-a03aef9cec35b0d03aa63d7e8093f0420cd4b40b.tar.xz
[refactor] rewrite vTxHashes as a vector of CTransactionRef
vTxHashes exposes a complex mapTx iterator type that its external users don't need. Directly populate it with CTransactionRef instead.
Diffstat (limited to 'src/test/blockencodings_tests.cpp')
-rw-r--r--src/test/blockencodings_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/blockencodings_tests.cpp b/src/test/blockencodings_tests.cpp
index 8709e0c623..33894fd076 100644
--- a/src/test/blockencodings_tests.cpp
+++ b/src/test/blockencodings_tests.cpp
@@ -51,8 +51,8 @@ static CBlock BuildBlockTestCase() {
}
// Number of shared use_counts we expect for a tx we haven't touched
-// (block + mempool + our copy from the GetSharedTx call)
-constexpr long SHARED_TX_OFFSET{3};
+// (block + mempool entry + mempool vTxHashes + our copy from the GetSharedTx call)
+constexpr long SHARED_TX_OFFSET{4};
BOOST_AUTO_TEST_CASE(SimpleRoundTripTest)
{