Skip to content

Conversation

@samcamwilliams
Copy link
Owner

This PR makes a series of improvements and refactors to the hb_store_lmdb store implementation. The effect is a significant reduction in the execution time of cache lookups for existing results when a node is under heavy strain, moving from ~30s to ~1-3s in our benchmarks.

samcamwilliams and others added 30 commits June 2, 2025 19:14
samcamwilliams and others added 28 commits June 14, 2025 13:30
- Replace  and  with unified  structure
- Add template-based route pricing in dev_simple_pay using route matching
- Move  and  functions to hb_util for reusability
- Add comprehensive test for dynamic router pricing functionality
- Update all router tests to use new configuration structure

This change improves router configuration consistency and enables flexible,
route-specific pricing based on template matching patterns.
…d pricing tests

- Replace module hash reference with inline Lua script embedding
- Add hyper-token.lua and hyper-token-p4.lua scripts directly in test config
- Simplify p4_non_chargable_routes to essential templates only
- Remove unnecessary SNP trusted node configuration
- Add comprehensive pricing test cases for free (/c) and paid (/b) routes
- Remove unused ProxyWalletAddr variable and clean up test assertions
- Minor formatting cleanup in dev_simple_pay.erl

This makes the test more self-contained and adds proper validation
of route pricing behavior instead of just checking message signers.
…e-dedup' into feat/simple-pay_template-matching
@samcamwilliams samcamwilliams merged commit dc274f5 into samcamwilliams:main Sep 7, 2025
1 of 2 checks passed
@samcamwilliams samcamwilliams deleted the impr/lmdb-store branch September 7, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants