Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Jun 20, 2024
1 parent 8e5c1d5 commit 02785af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/script/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ std::pair<size_t, size_t> CScript::DatacarrierBytes() const
std::vector<unsigned char> push_data;
unsigned int inside_noop{0}, inside_conditional{0};
CScript::const_iterator opcode_it = begin(), data_began = begin();
LogPrintf("LJR begin=%p end=%p\n", begin().ptr, end().ptr);
for (CScript::const_iterator it = begin(); it < end(); last_opcode = opcode) {
// LogPrintf("LJR begin=%p end=%p\n", begin().ptr, end().ptr);
for (CScript::const_iterator it = begin(); it < end(); ) {
opcode_it = it;
if (!GetOp(it, opcode, push_data)) {
// Invalid scripts are necessarily all data
Expand All @@ -308,8 +308,9 @@ std::pair<size_t, size_t> CScript::DatacarrierBytes() const
counted += it - data_began;
}
// LogPrintf("LJR opcode=%s PD4=%s data_began=%p opcode_it=%p it=%p last_opcode=%s counted=%s\n", opcode, OP_PUSHDATA4, data_began.ptr, opcode_it.ptr, it.ptr, last_opcode, counted);
last_opcode = opcode;
}
LogPrintf("LJR opcode=%s PD4=%s data_began=%p last_opcode=%s counted=%s\n", opcode, OP_PUSHDATA4, data_began.ptr, last_opcode, counted);
// LogPrintf("LJR opcode=%s PD4=%s data_began=%p last_opcode=%s counted=%s\n", opcode, OP_PUSHDATA4, data_began.ptr, last_opcode, counted);
return {0, counted};
}

Expand Down

0 comments on commit 02785af

Please sign in to comment.