HOW TO SETUP AND RUN STELLAR CORE NODE?
Stellar, a decentralized network that connects many nodes (computers that keep a shared ledger), is a network that allows for multiple computers to communicate with each other. Each node communicates with the other to verify and add transactions to a shared ledger. Stellar Core uses the Stellar Consensus Protocol. It allows the nodes to remain in sync while validating transactions as well as applying them into the ledger.
Types of nodes
Stellar nodes share the same basic functionality: Stellar Core, connecting with peers, processing transactions, storing ledger's information in SQL database, keeping a copy of ledger in flat XDR XDR files called Buckets, and running Stellar Core. Horizon is the Stellar API which is supported by all nodes. Beyond the basic functionality, there are two important configuration options that determine a node’s behavior. A node's behavior can be:
- Participate at consensus for transitions validation
- Create an archive that can be accessed by other nodes so they can see the full history of the network.
Environment Setup
Stellar Core is available in several ways. It can then be set up to participate at different levels in the network: watcher, basic validator or full validator. No matter how Stellar Core is installed it is essential to connect to a peer–to–peer network, to store the ledger’s state in a database, and to connect the Stellar API, Horizon.
Calculate the requirements
Stellar Core PostgreSQL performs well on an m5.large AWS machine with dual-core Intel Xenon 2.5GHz processors and 8GB RAM. Storage-wise, 1TB is recommended to be enough.
Network access
Stellar Core connects directly to a peer–to–peer network in order to maintain the ledger in sync. It is necessary that each node has specific TCP ports ready for outbound or inbound communication.
Inbound:
Stellar Core node permits all IPs connect to its peer_PORT over TCP. Stellar Core can have a port specified, but the default (11625), should be used.
Outbound:
Stellar Core should connect to other nodes over PEER_PORT instead of TCP. Stellarbeat provides information about the PEER_PORT of other nodes.
Comments
Post a Comment