Skip to content

Commit b7438e2

Browse files
committed
Fix prevout assertions.
1 parent 61dfc39 commit b7438e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/bitcoin/database/tables/caches/prevout.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ struct prevout
145145
std::for_each(cons.begin(), cons.end(), write_con);
146146
std::for_each(std::next(txs.begin()), txs.end(), write_tx);
147147

148-
BC_ASSERT(!sink || (sink.get_write_position() == count() * minrow));
148+
BC_ASSERT(!sink || (sink.get_write_position() == count()));
149149
return sink;
150150
}
151151

@@ -180,7 +180,7 @@ struct prevout
180180
value.second = source.read_little_endian<uint32_t>();
181181
});
182182

183-
BC_ASSERT(!source || source.get_read_position() == count() * minrow);
183+
BC_ASSERT(!source || source.get_read_position() == count());
184184
return source;
185185
}
186186

0 commit comments

Comments
 (0)