Skip to content

Commit f9d43de

Browse files
committed
Change ins.allocate to ins.expand to sync with point keys.
1 parent a235a4d commit f9d43de

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ code CLASS::set_code(tx_link& tx_fk, const transaction& tx) NOEXCEPT
115115
if (point_fk.is_terminal())
116116
return error::tx_point_allocate;
117117

118-
// Allocate ins records (links synchronized with point).
119-
const auto ins_fk = store_.ins.allocate(inputs);
120-
if (ins_fk != point_fk)
118+
// Expand synchronizes keys with point allocation.
119+
if (!store_.ins.expand(point_fk + inputs))
121120
return error::tx_ins_allocate;
122121

123122
// Commit input and ins|point records.

0 commit comments

Comments
 (0)