Slyghtning
51eb8f410a
reservation: validate confirmed output amounts
...
Compare each confirmed transaction output with the expected reservation
amount before advancing the state machine.
2026-08-11 21:27:34 +02:00
Slyghtning
c75d7e3e81
reservation: bound and prune active state machines
...
Limit newly accepted reservation state machines, resume all persisted
reservations, remove terminal entries from memory, and make cleanup
resilient to observer-driven eviction.
2026-08-11 21:27:34 +02:00
Slyghtning
41b884f610
reservation: reject duplicate reservation entries
...
Check active and persisted reservations before creating a new state
machine, preserving the existing reservation when a duplicate arrives.
2026-08-11 21:21:53 +02:00
Slyghtning
806c1f9356
reservation: keep processing after notification errors
...
Log individual reservation initialization failures and continue
consuming later notifications instead of stopping the manager.
2026-08-11 21:21:53 +02:00
Slyghtning
a10c741a26
lint: fix linter issues
2026-03-09 14:39:45 +01:00
Boris Nagaev
ce77fcc12c
instantout/reservation: fix data race in test
2025-03-19 15:00:30 +01:00
sputn1ck
f2fb722901
reservation: add initchan
...
This fixes a flake in the unit tests
2024-10-22 11:46:31 +02:00
sputn1ck
6408ec8e7e
reservation: remove notifications from reservation
...
This commit removes the notification stream from
the reservation manager and replaces it with a
subscriber interface.
2024-10-08 14:58:37 +02:00
Boris Nagaev
1947b90842
multi: typed callback in ExecTx
...
Provide a wrapped store type, exposing ExecTx method with a subset
interface in the callback argument. BaseDB interfaces in instantout,
reservation and sweepbatcher use ExecTx with their subset Querier
instead of whole sqlc.Querier (*sqlc.Queries).
This is needed to make the packages more reusable, so they don't
depend on methods of *sqlc.Queries they don't use.
2024-06-19 10:38:55 -03:00
sputn1ck
89b5c00cfa
reservation: update reservation state machine
...
This commit updates the reservation statemachine to
allow for locking and spending of the
initial reservation.
2024-02-06 15:07:56 +01:00
sputn1ck
d527b0b67c
reservation: add test for manager
2024-01-17 15:59:06 +01:00