loop/sweepbatcher
Boris Nagaev 980c7d4e00
sweepbatcher: align dbBatch type with DB schema
Previously, dbBatch had a State field (enum: Open, Closed, Confirmed), but in
the database it is represented as a boolean Confirmed. The Closed state was
stored the same way as Open. This wasn't an issue in practice, since an Open
batch is quickly transitioned to Closed after startup.

However, the in-memory mock stores plain dbBatch instances, leading to
inconsistent behavior between the mock and the real DB-backed store. This
commit updates dbBatch to match the database representation by replacing
the State field with a Confirmed boolean.
2025-06-12 12:32:09 -03:00
..
greedy_batch_selection.go sweepbatcher: allow adding groups of inputs 2025-04-03 09:49:46 -03:00
greedy_batch_selection_test.go sweepbatcher: allow adding groups of inputs 2025-04-03 09:49:46 -03:00
log.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
presigned.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
presigned_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
store.go sweepbatcher: align dbBatch type with DB schema 2025-06-12 12:32:09 -03:00
store_mock.go sweepbatcher: align dbBatch type with DB schema 2025-06-12 12:32:09 -03:00
sweep_batch.go sweepbatcher: align dbBatch type with DB schema 2025-06-12 12:32:09 -03:00
sweep_batch_test.go sweepbatcher: fix rounding in constructUnsignedTx 2025-05-08 17:24:10 -03:00
sweep_batcher.go sweepbatcher: align dbBatch type with DB schema 2025-06-12 12:32:09 -03:00
sweep_batcher_presigned_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00
sweep_batcher_test.go sweepbatcher: add mode with presigned transactions 2025-05-08 17:24:10 -03:00