aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-16 12:59:43 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-17 14:38:26 +0100
commitfa0ed0794161d937d2d3385963c1aa5624b60d17 (patch)
treee99421b87f166bb6dec879cf6e313250629edde2 /src/psbt.h
parent98b0acda0f00df3f62a61646d323c8367ddebd68 (diff)
refactor: VectorWriter without nVersion
The field is unused, so remove it. This is also required for future commits.
Diffstat (limited to 'src/psbt.h')
-rw-r--r--src/psbt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/psbt.h b/src/psbt.h
index a14df03837..ac2d246a27 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -316,7 +316,7 @@ struct PSBTInput
const auto& [leaf_hashes, origin] = leaf_origin;
SerializeToVector(s, PSBT_IN_TAP_BIP32_DERIVATION, xonly);
std::vector<unsigned char> value;
- CVectorWriter s_value{s.GetVersion(), value, 0};
+ VectorWriter s_value{value, 0};
s_value << leaf_hashes;
SerializeKeyOrigin(s_value, origin);
s << value;
@@ -757,7 +757,7 @@ struct PSBTOutput
if (!m_tap_tree.empty()) {
SerializeToVector(s, PSBT_OUT_TAP_TREE);
std::vector<unsigned char> value;
- CVectorWriter s_value{s.GetVersion(), value, 0};
+ VectorWriter s_value{value, 0};
for (const auto& [depth, leaf_ver, script] : m_tap_tree) {
s_value << depth;
s_value << leaf_ver;
@@ -771,7 +771,7 @@ struct PSBTOutput
const auto& [leaf_hashes, origin] = leaf;
SerializeToVector(s, PSBT_OUT_TAP_BIP32_DERIVATION, xonly);
std::vector<unsigned char> value;
- CVectorWriter s_value{s.GetVersion(), value, 0};
+ VectorWriter s_value{value, 0};
s_value << leaf_hashes;
SerializeKeyOrigin(s_value, origin);
s << value;