aboutsummaryrefslogtreecommitdiff
path: root/src/test/blockencodings_tests.cpp
diff options
context:
space:
mode:
authorAngusP <angus@toaster.cc>2024-03-25 20:13:35 +0100
committerAngusP <angus@toaster.cc>2024-04-06 19:17:20 +0100
commita8203e94123b6ea6e4f4a6320e3ad20457f44a28 (patch)
tree841406ff1360618288b9b1da135acfee44787503 /src/test/blockencodings_tests.cpp
parentc3c18433ae1d5b024d4cb92c762f5ca0ec7849c8 (diff)
downloadbitcoin-a8203e94123b6ea6e4f4a6320e3ad20457f44a28.tar.xz
refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>
All `CTransactionRef` have `.GetWitnessHash()` that returns a cached `const Wtxid` (since fac1223a568fa1ad6dd602350598eed278d115e8), so we don't need to pass transaction refs around with their IDs as they're easy to get from a ref.
Diffstat (limited to 'src/test/blockencodings_tests.cpp')
-rw-r--r--src/test/blockencodings_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/blockencodings_tests.cpp b/src/test/blockencodings_tests.cpp
index 57e2a10302..05355fb21d 100644
--- a/src/test/blockencodings_tests.cpp
+++ b/src/test/blockencodings_tests.cpp
@@ -14,7 +14,7 @@
#include <boost/test/unit_test.hpp>
-std::vector<std::pair<Wtxid, CTransactionRef>> extra_txn;
+std::vector<CTransactionRef> extra_txn;
BOOST_FIXTURE_TEST_SUITE(blockencodings_tests, RegTestingSetup)