Node::build method, which requires configuration settings and a database manager.
Configuration Overview
TAPLE node configuration is divided into two main categories:- Network Settings - P2P network configuration
- Node Settings - General node behavior and cryptographic settings
Network Configuration
Network settings control how the node connects to the TAPLE network.NetworkSettings Structure
Listen Addresses
TAPLE supports three types of listen addresses: IP4 Address (default):Known Nodes
Bootstrap nodes are specified using the libp2p Multiaddr format:Node Configuration
Node settings control the core behavior of the TAPLE node.NodeSettings Structure
Default Values
Building a Node
Initialize the database manager
For testing, use the in-memory database:For production, implement the
DatabaseManager trait with a persistent storage solution.Node Lifecycle
Controller ID
When the node is built, it generates and logs a Controller ID:Shutdown
Gracefully shutdown the node:Configuration Files
TAPLE Core uses theconfig crate, allowing configuration via:
- TOML files
- Environment variables
- JSON files
- Command-line arguments
