diff options
| author | Your Name <you@example.com> | 2026-05-17 04:21:39 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 04:21:39 +0530 |
| commit | 78dd599277b8e8b2ddc39a4ae710ec91d737272e (patch) | |
| tree | 9fbd89695cede00b8ff3b12ce428e96a2aa70e9b /tests/unit/Makefile | |
| parent | b0d7394e089f00a9ffa67a2b33a502e47b778a93 (diff) | |
Phase 4: TollGate client detection + auto-payment
- New tollgate_client.c/h: detect upstream TollGate (kind=10021),
auto-pay via nucula wallet, session monitoring with 20% renewal
- State machine: IDLE→DETECTING→NEEDS_PAY→PAYING→PAID→RENEWING
- Blocking: upstream payment before local services start
- Synchronous wallet init (was async task)
- Client config: enabled, steps_to_buy, renewal_threshold_pct
- Updated PLAN.md with Phases 4-7 (client, payout, bytes, CVM)
- Updated CHECKLIST.md with all new phase items
- 30 new unit tests (all passing), 116 total
Diffstat (limited to 'tests/unit/Makefile')
| -rw-r--r-- | tests/unit/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile index ab41175..e4ea388 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile | |||
| @@ -21,7 +21,7 @@ LDFLAGS := -lmbedcrypto -lcjson | |||
| 21 | 21 | ||
| 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o | 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o |
| 23 | 23 | ||
| 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session | 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client |
| 25 | 25 | ||
| 26 | .PHONY: all test clean $(TESTS) | 26 | .PHONY: all test clean $(TESTS) |
| 27 | 27 | ||
| @@ -62,5 +62,8 @@ test_cashu: test_cashu.c $(REPO_ROOT)/main/cashu.c | |||
| 62 | test_session: test_session.c $(REPO_ROOT)/main/session.c | 62 | test_session: test_session.c $(REPO_ROOT)/main/session.c |
| 63 | $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/session.c -o $@ $(LDFLAGS) | 63 | $(CC) $(CFLAGS) $< $(REPO_ROOT)/main/session.c -o $@ $(LDFLAGS) |
| 64 | 64 | ||
| 65 | test_tollgate_client: test_tollgate_client.c | ||
| 66 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | ||
| 67 | |||
| 65 | clean: | 68 | clean: |
| 66 | rm -f $(TESTS) $(SECP256K1_OBJ) | 69 | rm -f $(TESTS) $(SECP256K1_OBJ) |