Commit Graph

6 Commits

Author SHA1 Message Date
aitbc
da05c5f50f Fix P2P mempool sync after git merge - restore mempool sync loop task and fix indentation 2026-04-09 14:17:31 +02:00
aitbc
ca7da25b9d feat: add mempool initialization to P2P service and increase sync frequency
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Added mempool initialization in main() using settings configuration
- Added support for database backend with mempool.db path resolution
- Added debug logging for mempool sync loop iteration with transaction count
- Reduced mempool sync interval from 2 seconds to 1 second for faster propagation
- Fixed indentation in mempool sync loop transaction iteration
2026-04-09 14:13:59 +02:00
aitbc
96fe4ca9af feat: add mempool synchronization background task to P2P network service
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Added mempool_sync_loop background task initialization in start() method
- Registered mempool task in _background_tasks list for lifecycle management
- Enables automatic mempool synchronization across P2P mesh network
2026-04-09 14:05:54 +02:00
aitbc
4d54414f0b feat: add P2P transaction gossip protocol with mempool synchronization
Some checks failed
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Added mempool sync loop to broadcast new transactions every 2 seconds
- Implemented transaction deduplication using seen_txs set with tx_hash tracking
- Added support for both InMemoryMempool and DatabaseMempool transaction retrieval
- Added new_transaction message handler for receiving P2P transactions
- Implemented gossip forwarding to propagate transactions across mesh network
- Added automatic mempool.add() for received
2026-04-09 14:02:38 +02:00
aitbc
5c09774e06 refactor: migrate P2P network from Redis gossip to direct TCP mesh architecture
Some checks failed
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Systemd Sync / sync-systemd (push) Has been cancelled
- Replaced Redis-based P2P with direct TCP connections for decentralized mesh networking
- Added handshake protocol with node_id exchange for peer authentication
- Implemented bidirectional connection management (inbound/outbound streams)
- Added peer dialing loop to continuously reconnect to initial peers
- Added ping/pong keepalive mechanism to maintain active connections
- Prevented duplicate connections through endpoint
2026-04-09 12:07:34 +02:00
5f2ab48b9a Shared Chain Implementation 2026-03-19 13:01:21 +01:00