mirror of
https://github.com/aljazceru/lnflow.git
synced 2026-02-03 19:14:20 +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>
133 lines
1.7 KiB
Plaintext
133 lines
1.7 KiB
Plaintext
# Lightning Fee Optimizer - Git Ignore Rules
|
|
|
|
# Third-party embedded repositories (handled separately)
|
|
charge-lnd-original/
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
*.so
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
pip-wheel-metadata/
|
|
share/python-wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
|
|
# Virtual Environments (CRITICAL - these are huge)
|
|
venv/
|
|
env/
|
|
ENV/
|
|
env.bak/
|
|
venv.bak/
|
|
|
|
# Data & Experimental Results (potentially sensitive)
|
|
data/
|
|
data_samples/
|
|
experiment_data/
|
|
*.db
|
|
*.sqlite*
|
|
|
|
# Log Files
|
|
logs/
|
|
*.log
|
|
experiment.log
|
|
policy.log
|
|
|
|
# Generated Files & Reports
|
|
*_details.json
|
|
*_analysis.csv
|
|
*_recommendations.json
|
|
channel_analysis.csv
|
|
channel_details_sample.json
|
|
channel2_details.json
|
|
final_recommendations.json
|
|
test_recommendations.json
|
|
essential_commands.txt
|
|
inbound_fee_quick_reference.txt
|
|
|
|
# IDE & Editors
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.vim/
|
|
.netrwhist
|
|
|
|
# OS Files
|
|
.DS_Store
|
|
.DS_Store?
|
|
._*
|
|
.Spotlight-V100
|
|
.Trashes
|
|
ehthumbs.db
|
|
Thumbs.db
|
|
|
|
# Environment & Secrets
|
|
.env
|
|
.env.local
|
|
.env.*.local
|
|
*.conf.local
|
|
config.local.*
|
|
*.key
|
|
*.pem
|
|
admin.macaroon*
|
|
charge-lnd.macaroon*
|
|
|
|
# Temporary Files
|
|
*.tmp
|
|
*.temp
|
|
temp/
|
|
tmp/
|
|
|
|
# Jupyter Notebooks (if any)
|
|
.ipynb_checkpoints/
|
|
*/.ipynb_checkpoints/*
|
|
|
|
# Testing
|
|
.coverage
|
|
.pytest_cache/
|
|
.tox/
|
|
htmlcov/
|
|
|
|
# Node.js (if used for tools)
|
|
node_modules/
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Lightning Network Specific
|
|
# Actual channel/node data (keep examples)
|
|
**/channels/*.json
|
|
**/nodes/*.json
|
|
open_channels.json
|
|
summary.txt
|
|
synced_status.json
|
|
block_height.txt
|
|
|
|
# Executables & Symlinks (review manually)
|
|
lightning-fee-optimizer
|
|
|
|
# Backup files
|
|
*.bak
|
|
*.backup
|
|
*~
|
|
|
|
# Documentation build artifacts (if using Sphinx, etc.)
|
|
docs/_build/
|
|
docs/.doctrees/ |