diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-30 15:32:40 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-04 06:53:32 +0200 |
commit | fa05dddc42770809fdae4d9c35155f8117960019 (patch) | |
tree | daaf2d3f9598f89b8c3a8230c765f7a4df1cd9d0 /src/compressor.cpp | |
parent | fabb6dfe6e734eadd91448122f2ce8c1612c39a6 (diff) |
refactor: Use CPubKey vector constructor where possible
Diffstat (limited to 'src/compressor.cpp')
-rw-r--r-- | src/compressor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compressor.cpp b/src/compressor.cpp index ef3135e7a5..a161c42866 100644 --- a/src/compressor.cpp +++ b/src/compressor.cpp @@ -124,7 +124,7 @@ bool DecompressScript(CScript& script, unsigned int nSize, const CompressedScrip unsigned char vch[33] = {}; vch[0] = nSize - 2; memcpy(&vch[1], in.data(), 32); - CPubKey pubkey(&vch[0], &vch[33]); + CPubKey pubkey{vch}; if (!pubkey.Decompress()) return false; assert(pubkey.size() == 65); |