Merge 196b459920 into merged_master (Bitcoin PR bitcoin/bitcoin#23438)

This commit is contained in:
Byron Hambly 2023-06-28 18:50:02 +00:00
commit a992ccaac2
31 changed files with 218 additions and 207 deletions

View file

@ -2306,12 +2306,12 @@ public:
it = itBegin;
while (scriptCode.GetOp(it, opcode)) {
if (opcode == OP_CODESEPARATOR) {
s.write((char*)&itBegin[0], it-itBegin-1);
s.write(AsBytes(Span{&itBegin[0], size_t(it - itBegin - 1)}));
itBegin = it;
}
}
if (itBegin != scriptCode.end())
s.write((char*)&itBegin[0], it-itBegin);
s.write(AsBytes(Span{&itBegin[0], size_t(it - itBegin)}));
}
/** Serialize an input of txTo */