We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca2ca7 commit 5b1b4beCopy full SHA for 5b1b4be
1 file changed
src/chain/block.cpp
@@ -232,7 +232,7 @@ hashes block::transaction_hashes(bool witness) const NOEXCEPT
232
// Extra allocation for odd count optimizes for merkle root.
233
// Vector capacity is never reduced when resizing to smaller size.
234
const auto count = txs_->size();
235
- const auto size = is_odd(count) && count > one ? add1(count) : count;
+ const auto size = !is_one(count) && is_odd(count) ? add1(count) : count;
236
hashes out(size);
237
out.resize(count);
238
0 commit comments