Skip to content

Commit f889b35

Browse files
committed
Remove bogus assertions.
1 parent 446d987 commit f889b35

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

include/bitcoin/database/impl/query/validate.ipp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ bool CLASS::set_tx_state(const tx_link& link, const context& ctx,
377377
uint64_t fee, size_t sigops, schema::tx_state state) NOEXCEPT
378378
{
379379
using sigs = linkage<schema::sigops>;
380-
BC_ASSERT(sigops<system::power2<sigs::integer>(to_bits(sigs::size)));
381380

382381
// ========================================================================
383382
const auto scope = store_.get_transactor();

include/bitcoin/database/tables/archives/txs.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ struct txs
173173

174174
inline bool to_data(finalizer& sink) const NOEXCEPT
175175
{
176-
BC_ASSERT(number < system::power2<uint64_t>(to_bits(ct::size)));
177-
178176
// tx sizes
179177
const auto merged = merge(interval.has_value(), light);
180178
sink.write_little_endian<bytes::integer, bytes::size>(merged);

0 commit comments

Comments
 (0)