We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7a5e1 commit cce3024Copy full SHA for cce3024
src/blockencodings.h
@@ -53,11 +53,11 @@ class BlockTransactionsRequest {
53
}
54
55
uint16_t offset = 0;
56
- for (size_t i = 0; i < indexes.size(); i++) {
57
- if (uint64_t(indexes[i]) + uint64_t(offset) > std::numeric_limits<uint16_t>::max())
+ for (size_t j = 0; j < indexes.size(); j++) {
+ if (uint64_t(indexes[j]) + uint64_t(offset) > std::numeric_limits<uint16_t>::max())
58
throw std::ios_base::failure("indexes overflowed 16 bits");
59
- indexes[i] = indexes[i] + offset;
60
- offset = indexes[i] + 1;
+ indexes[j] = indexes[j] + offset;
+ offset = indexes[j] + 1;
61
62
} else {
63
for (size_t i = 0; i < indexes.size(); i++) {
0 commit comments