mirror of
https://github.com/aljazceru/lnflow.git
synced 2026-01-07 22:44:28 +01:00
Advanced Lightning Network channel fee optimization system with: ✅ Intelligent inbound fee strategies (beyond charge-lnd) ✅ Automatic rollback protection for safety ✅ Machine learning optimization from historical data ✅ High-performance gRPC + REST API support ✅ Enterprise-grade security with method whitelisting ✅ Complete charge-lnd compatibility Features: - Policy-based fee management with advanced strategies - Balance-based and flow-based optimization algorithms - Revenue maximization focus vs simple rule-based approaches - Comprehensive security analysis and hardening - Professional repository structure with proper documentation - Full test coverage and example configurations Architecture: - Modern Python project structure with pyproject.toml - Secure gRPC integration with REST API fallback - Modular design: API clients, policy engine, strategies - SQLite database for experiment tracking - Shell script automation for common tasks Security: - Method whitelisting for LND operations - Runtime validation of all gRPC calls - No fund movement capabilities - fee management only - Comprehensive security audit completed - Production-ready with enterprise standards 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
513 B
JSON
22 lines
513 B
JSON
{
|
|
"api": {
|
|
"base_url": "http://localhost:18081",
|
|
"timeout": 30,
|
|
"max_retries": 3,
|
|
"retry_delay": 1.0
|
|
},
|
|
"optimization": {
|
|
"min_fee_rate": 1,
|
|
"max_fee_rate": 15000,
|
|
"high_flow_threshold": 10000000,
|
|
"low_flow_threshold": 1000000,
|
|
"high_balance_threshold": 0.8,
|
|
"low_balance_threshold": 0.2,
|
|
"fee_increase_factor": 1.5,
|
|
"flow_preservation_weight": 0.6,
|
|
"min_fee_change_ppm": 5,
|
|
"min_earnings_improvement": 100
|
|
},
|
|
"verbose": false,
|
|
"dry_run": true
|
|
} |