Skip to content

Commit 7de6531

Browse files
committed
Comments.
1 parent d1c9426 commit 7de6531

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ code CLASS::set_code(const tx_link& tx_fk, const transaction& tx,
164164
if (!store_.point.expand(ins_fk + inputs))
165165
return error::tx_point_allocate;
166166

167-
// If dirty we must guard against duplicates.
168-
// Dirty doesn't hold up in the case of an invalidated block, as that
169-
// may result in a duplicated tx. So dirty should be false in the case
170-
// of a non-bypass (valid) block.
167+
// If dirty we must guard against duplicates. Dirty is caused by disk,
168+
// full, disorganized or reorganized block, and tx pooling. It is set
169+
// to true at runtime by any of these and in case of duplicate table
170+
// non-empty at store startup. disorg/reorg indicated by candidate pop.
171171
// Must be set after tx.set and before tx.commit, since searchable and
172172
// produces association to tx.link, and is also an integral part of tx.
173173
if (store_.is_dirty() || !bypass)

0 commit comments

Comments
 (0)