refactor: Use CPubKey vector constructor where possible

This commit is contained in:
MarcoFalke
2021-04-30 15:32:40 +02:00
parent fabb6dfe6e
commit fa05dddc42
4 changed files with 8 additions and 8 deletions

View File

@@ -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);