diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-11-16 12:59:43 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-11-17 14:38:26 +0100 |
commit | fa0ed0794161d937d2d3385963c1aa5624b60d17 (patch) | |
tree | e99421b87f166bb6dec879cf6e313250629edde2 /src/signet.cpp | |
parent | 98b0acda0f00df3f62a61646d323c8367ddebd68 (diff) | |
download | bitcoin-fa0ed0794161d937d2d3385963c1aa5624b60d17.tar.xz |
refactor: VectorWriter without nVersion
The field is unused, so remove it.
This is also required for future commits.
Diffstat (limited to 'src/signet.cpp')
-rw-r--r-- | src/signet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signet.cpp b/src/signet.cpp index d6a3a44d91..ef9913218a 100644 --- a/src/signet.cpp +++ b/src/signet.cpp @@ -110,7 +110,7 @@ std::optional<SignetTxs> SignetTxs::Create(const CBlock& block, const CScript& c uint256 signet_merkle = ComputeModifiedMerkleRoot(modified_cb, block); std::vector<uint8_t> block_data; - CVectorWriter writer{INIT_PROTO_VERSION, block_data, 0}; + VectorWriter writer{block_data, 0}; writer << block.nVersion; writer << block.hashPrevBlock; writer << signet_merkle; |